aboutsummaryrefslogtreecommitdiffstats
path: root/testing/openswan/ipsec.initd
diff options
context:
space:
mode:
Diffstat (limited to 'testing/openswan/ipsec.initd')
-rw-r--r--testing/openswan/ipsec.initd29
1 files changed, 29 insertions, 0 deletions
diff --git a/testing/openswan/ipsec.initd b/testing/openswan/ipsec.initd
new file mode 100644
index 0000000000..a034601d4f
--- /dev/null
+++ b/testing/openswan/ipsec.initd
@@ -0,0 +1,29 @@
+#!/sbin/runscript
+
+# Sample init.d file for alpine linux.
+
+name=
+daemon=/usr/sbin/$name
+
+depend() {
+ need net
+ after firewall
+}
+
+start() {
+ ebegin "Starting ${name}"
+ start-stop-daemon --start --quiet \
+ --pidfile /var/run/${name}.pid \
+ --chuid ${sample_user}:${sample_group} \
+ --exec ${daemon} -- ${sample_opts}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping ${name}"
+ start-stop-daemon --stop --quiet \
+ --pidfile /var/run/$name.pid \
+ --exec ${daemon}
+ eend $?
+}
+