Lines 4-12
Link Here
|
4 |
|
4 |
|
5 |
[Service] |
5 |
[Service] |
6 |
PrivateTmp=true |
6 |
PrivateTmp=true |
7 |
Type=forking |
7 |
ExecStart=/usr/sbin/openvpn --config %i.conf |
8 |
PIDFile=/var/run/openvpn/%i.pid |
8 |
ExecReload=/bin/kill -HUP $MAINPID |
9 |
ExecStart=/usr/sbin/openvpn --daemon --writepid /var/run/openvpn/%i.pid --cd /etc/openvpn/ --config %i.conf |
9 |
WorkingDirectory=/etc/openvpn |
10 |
|
10 |
|
11 |
[Install] |
11 |
[Install] |
12 |
WantedBy=multi-user.target |
12 |
WantedBy=multi-user.target |