[PATCH 2/4] Run in foreground when using systemd

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Aron Xu <aron at debian.org>
---
 doc/systemd/socket-activated/ocserv.service | 3 +--
 doc/systemd/standalone/ocserv.service       | 5 ++---
 2 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/doc/systemd/socket-activated/ocserv.service b/doc/systemd/socket-activated/ocserv.service
index 3e80250..3b01bd8 100644
--- a/doc/systemd/socket-activated/ocserv.service
+++ b/doc/systemd/socket-activated/ocserv.service
@@ -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]
diff --git a/doc/systemd/standalone/ocserv.service b/doc/systemd/standalone/ocserv.service
index 86fca91..ca8d359 100644
--- a/doc/systemd/standalone/ocserv.service
+++ b/doc/systemd/standalone/ocserv.service
@@ -1,15 +1,14 @@
 [Unit]
 Description=OpenConnect SSL VPN server
 Documentation=man:ocserv(8)
-After=syslog.target
 After=network.target
+After=syslog.target
 After=dbus.service
 
 [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]
-- 
2.1.4




[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux