aboutsummaryrefslogtreecommitdiffstats
path: root/testing/fastd/fastd.initd
diff options
context:
space:
mode:
authorJohannes Matheis <jomat+alpinebuild@jmt.gr>2015-02-08 13:25:10 +0000
committerTimo Teräs <timo.teras@iki.fi>2015-02-09 08:50:18 +0200
commit93bf317ffed831452c69550b0179e2ded06aac7b (patch)
treeef91836c54fd3cfdd0a2adf4fe28791131fe9cb8 /testing/fastd/fastd.initd
parent706bcdda878579d42b4ec845892e2c2ee589611b (diff)
downloadaports-93bf317ffed831452c69550b0179e2ded06aac7b.tar.bz2
aports-93bf317ffed831452c69550b0179e2ded06aac7b.tar.xz
testing/fastd: new aport
Fast and Secure Tunneling Daemon https://projects.universe-factory.net/projects/fastd [tteras: fixed dependencies]
Diffstat (limited to 'testing/fastd/fastd.initd')
-rwxr-xr-xtesting/fastd/fastd.initd19
1 files changed, 19 insertions, 0 deletions
diff --git a/testing/fastd/fastd.initd b/testing/fastd/fastd.initd
new file mode 100755
index 0000000000..a97854697a
--- /dev/null
+++ b/testing/fastd/fastd.initd
@@ -0,0 +1,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"
+
+