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