2013-03-25 16:08:09 +01:00
|
|
|
[Unit]
|
2020-03-09 10:28:36 +01:00
|
|
|
Description=OpenVPN tunneling daemon instance using /etc/openvpn/%i.conf
|
2013-04-23 15:22:31 +02:00
|
|
|
After=network.target
|
|
|
|
PartOf=openvpn.target
|
2013-03-25 16:08:09 +01:00
|
|
|
|
|
|
|
[Service]
|
2018-04-10 16:40:39 +02:00
|
|
|
Type=notify
|
2013-04-23 14:40:53 +02:00
|
|
|
PrivateTmp=true
|
2020-08-28 12:05:24 +02:00
|
|
|
PIDFile=/run/openvpn/%i.pid
|
2023-01-09 14:30:43 +01:00
|
|
|
ExecStart=/usr/sbin/openvpn --daemon openvpn@%i --writepid /run/openvpn/%i.pid --cd /etc/openvpn/ --config %i.conf
|
2019-07-29 10:10:52 +02:00
|
|
|
# boo#1142830: "reload" does not work if openvpn drops root privileges after startup.
|
2020-08-28 12:05:24 +02:00
|
|
|
ExecReload=/usr/bin/kill -HUP $MAINPID
|
2013-03-25 16:08:09 +01:00
|
|
|
|
|
|
|
[Install]
|
2013-04-23 15:22:31 +02:00
|
|
|
WantedBy=multi-user.target openvpn.target
|
2013-03-25 16:08:09 +01:00
|
|
|
|