aboutsummaryrefslogblamecommitdiffstats
path: root/testing/fastd/fastd.initd
blob: 37f497082f0cf0229fab001b311ea0a58c45dd37 (plain) (tree)
1
                  

















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