aboutsummaryrefslogtreecommitdiffstats
path: root/testing/peervpn/peervpn.initd
diff options
context:
space:
mode:
Diffstat (limited to 'testing/peervpn/peervpn.initd')
-rw-r--r--testing/peervpn/peervpn.initd17
1 files changed, 17 insertions, 0 deletions
diff --git a/testing/peervpn/peervpn.initd b/testing/peervpn/peervpn.initd
new file mode 100644
index 0000000000..2f631ba4eb
--- /dev/null
+++ b/testing/peervpn/peervpn.initd
@@ -0,0 +1,17 @@
+#!/sbin/openrc-run
+
+# Sample init.d file for alpine linux.
+
+name=peervpn
+command="/usr/sbin/$name"
+command_args="/etc/$name.conf"
+command_background="yes"
+
+# peervpn does not daemonize itself.
+start_stop_daemon_args="--stdout=/var/log/$name.log --stderr=/var/log/$name.log"
+pidfile="/run/$name.pid"
+
+depend() {
+ need net
+ after firewall
+}