2013-03-25 16:08:09 +01:00
|
|
|
[Unit]
|
2013-04-23 14:40:53 +02:00
|
|
|
Description=OpenVPN Robust And Highly Flexible Tunneling Application Instance using %I.conf
|
2013-03-25 16:08:09 +01:00
|
|
|
After=syslog.target network.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=forking
|
2013-04-23 14:40:53 +02:00
|
|
|
PrivateTmp=true
|
2013-03-25 16:08:09 +01:00
|
|
|
PIDFile=/var/run/openvpn/%i.pid
|
2013-04-23 14:40:53 +02:00
|
|
|
ExecStart=/usr/sbin/openvpn --daemon --suppress-timestamps --writepid /var/run/openvpn/%i.pid --cd /etc/openvpn/ --config %i.conf
|
|
|
|
ExecReload=/sbin/killproc -p /var/run/openvpn/%i.pid -HUP /usr/sbin/openvpn
|
2013-03-25 16:08:09 +01:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|
|
|
|
|