mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-10-14 02:22:03 +08:00
Added example systemd socket and service files.
This commit is contained in:
+2
-1
@@ -1,4 +1,5 @@
|
||||
EXTRA_DIST = design.dia sample.config scripts/ocserv-script sample.passwd
|
||||
EXTRA_DIST = design.dia sample.config scripts/ocserv-script sample.passwd \
|
||||
systemd/ocserv.service systemd/ocserv.socket
|
||||
|
||||
dist_man_MANS = ocserv.8 ocpasswd.8
|
||||
|
||||
|
||||
@@ -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
|
||||
@@ -0,0 +1,12 @@
|
||||
[Unit]
|
||||
Description=OpenConnect SSL VPN server Socket
|
||||
|
||||
[Socket]
|
||||
ListenStream=4443
|
||||
ListenDatagram=4443
|
||||
BindIPv6Only=default
|
||||
Accept=false
|
||||
ReusePort=true
|
||||
|
||||
[Install]
|
||||
WantedBy=sockets.target
|
||||
Reference in New Issue
Block a user