Added example systemd socket and service files.

This commit is contained in:
Nikos Mavrogiannopoulos
2014-01-06 12:43:23 +01:00
parent 4abc26872d
commit 1d697285e8
3 changed files with 30 additions and 1 deletions
+16
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