Added two versions of systemd socket files, a standalone and a socket activate.

From the standalone is installed by default.
This commit is contained in:
Nikos Mavrogiannopoulos
2014-01-28 18:01:29 +01:00
parent 22dfa568a0
commit ec10295d9c
4 changed files with 19 additions and 3 deletions

View File

@@ -0,0 +1,16 @@
[Unit]
Description=OpenConnect SSL VPN server
Documentation=man:ocserv(8)
After=syslog.target network.target
Requires=ocserv.socket
[Service]
PrivateTmp=true
Type=forking
PIDFile=/var/run/ocserv.pid
ExecStart=/usr/sbin/ocserv --pid-file /var/run/ocserv.pid --config /etc/ocserv/ocserv.conf
ExecReload=/bin/kill -HUP $MAINPID
[Install]
WantedBy=multi-user.target
Also=ocserv.socket