blob: a97854697abe5adf4ef290c77279986a3abfae65 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/sbin/runscript
VPN=${SVCNAME#*.}
if [ ${SVCNAME} != "fastd" ]; then
pidfile="/var/run/fastd.${VPN}.pid"
else
pidfile="/var/run/fastd.pid"
fi
command=/usr/bin/fastd
command_args="--daemon --pid-file ${pidfile} --config /etc/fastd/${VPN}.conf"
if [ ${SVCNAME} == "fastd" ]; then
name="fastd"
else
name="fastd ${VPN}"
fi
description="fastd VPN daemon"
|