1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-19 09:15:30 +03:00
aports/testing/fastd/fastd.initd
2015-11-09 09:57:17 +00:00

19 lines
365 B
Text
Executable file

#!/sbin/openrc-run
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"