summaryrefslogtreecommitdiff
blob: afd6caae68f0353d2266870aae3e101d8723fff4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
[Unit]
Description=Free Cisco VPN connection to %i
Documentation=man:vpnc(8) http://www.unix-ag.uni-kl.de/~massar/vpnc/
Requires=network.target
After=network.target
ConditionPathExists=/dev/net/tun

[Service]
Type=forking
EnvironmentFile=/etc/vpnc/%i.conf
PIDFile=/run/vpnc/%i.pid

ExecPreStart=/etc/vpnc/scripts.d/%i-preup.sh
ExecStart=/usr/sbin/vpnc --pid-file /run/vpnc/%i.pid
ExecPostStart=/etc/vpnc/scripts.d/%i-postup.sh

ExecPreStop=/etc/vpnc/scripts.d/%i-predown.sh
ExecPostStop=/etc/vpnc/scripts.d/%i-postdown.sh

[Install]
WantedBy=multi-user.target