diff options
Diffstat (limited to 'main/openswan/ipsec.initd')
-rw-r--r-- | main/openswan/ipsec.initd | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/main/openswan/ipsec.initd b/main/openswan/ipsec.initd new file mode 100644 index 000000000..32a06008a --- /dev/null +++ b/main/openswan/ipsec.initd @@ -0,0 +1,25 @@ +#!/sbin/runscript + +# Openswan ipsec init.d file for alpine linux. + +name=ipsec +daemon=/usr/libexec/ipsec/setup +pidfile=/var/run/pluto/ipsec_setup.pid + +depend() { + need net + after firewall +} + +start() { + ebegin "Starting ${name}" + $daemon start + eend $? +} + +stop() { + ebegin "Stopping ${name}" + $daemon stop + eend $? +} + |