Run in foreground when using systemd

Signed-off-by: Aron Xu <aron@debian.org>
This commit is contained in:
Aron Xu
2015-01-24 16:25:39 +08:00
committed by Nikos Mavrogiannopoulos
parent d4b6d97697
commit e2c609505b
2 changed files with 3 additions and 5 deletions

View File

@@ -6,9 +6,8 @@ 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
ExecStart=/usr/sbin/ocserv --foreground --pid-file /var/run/ocserv.pid --config /etc/ocserv/ocserv.conf
ExecReload=/bin/kill -HUP $MAINPID
[Install]