diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2013-05-13 18:37:10 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-05-13 18:37:10 +0000 |
commit | 61c14a0399fd8c6015dfd891dbf8f4f6bb63fdb7 (patch) | |
tree | 687d428c26a7105c2c5c71af1c6eda51bda56586 /testing/libreswan/ipsec.initd | |
parent | 0fa58f9984bf847986daad76fad7d5199a3f707b (diff) | |
download | aports-61c14a0399fd8c6015dfd891dbf8f4f6bb63fdb7.tar.bz2 aports-61c14a0399fd8c6015dfd891dbf8f4f6bb63fdb7.tar.xz |
testing/libreswan: fix installdirs, add init.d script from openswan
and split out docs
Diffstat (limited to 'testing/libreswan/ipsec.initd')
-rw-r--r-- | testing/libreswan/ipsec.initd | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/testing/libreswan/ipsec.initd b/testing/libreswan/ipsec.initd new file mode 100644 index 0000000000..d5bb222ef8 --- /dev/null +++ b/testing/libreswan/ipsec.initd @@ -0,0 +1,25 @@ +#!/sbin/runscript + +# libreswan 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 $? +} + |