aboutsummaryrefslogtreecommitdiffstats
path: root/testing/openswan/ipsec.initd
diff options
context:
space:
mode:
authorDanilo Godec <danilo.godec@agenda.si>2011-08-23 12:45:40 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2011-08-23 12:21:52 +0000
commit43d15fde74a5a4e0eea2dc4741f369570bf6ed1b (patch)
tree3dd49771acb479ffa6e9e9bc1574b0b3c63d2e11 /testing/openswan/ipsec.initd
parent489f5c7effcbc3cdca5d27e5bb95ee3b20bd0067 (diff)
downloadaports-43d15fde74a5a4e0eea2dc4741f369570bf6ed1b.tar.bz2
aports-43d15fde74a5a4e0eea2dc4741f369570bf6ed1b.tar.xz
OpenSwan - a new version 2.6.35 - removed 'ipsec.confd' as it didn't serve any purpose - created a working 'ipsec.initd' - changed the installation target for the 'setup' program, which usually goes in /etc/init.d/ipsec - now it goes to /usr/libexec/ipsec/setup and is called by ipsec.initd
Diffstat (limited to 'testing/openswan/ipsec.initd')
-rw-r--r--testing/openswan/ipsec.initd16
1 files changed, 6 insertions, 10 deletions
diff --git a/testing/openswan/ipsec.initd b/testing/openswan/ipsec.initd
index a034601d4f..32a06008ab 100644
--- a/testing/openswan/ipsec.initd
+++ b/testing/openswan/ipsec.initd
@@ -1,9 +1,10 @@
#!/sbin/runscript
-# Sample init.d file for alpine linux.
+# Openswan ipsec init.d file for alpine linux.
-name=
-daemon=/usr/sbin/$name
+name=ipsec
+daemon=/usr/libexec/ipsec/setup
+pidfile=/var/run/pluto/ipsec_setup.pid
depend() {
need net
@@ -12,18 +13,13 @@ depend() {
start() {
ebegin "Starting ${name}"
- start-stop-daemon --start --quiet \
- --pidfile /var/run/${name}.pid \
- --chuid ${sample_user}:${sample_group} \
- --exec ${daemon} -- ${sample_opts}
+ $daemon start
eend $?
}
stop() {
ebegin "Stopping ${name}"
- start-stop-daemon --stop --quiet \
- --pidfile /var/run/$name.pid \
- --exec ${daemon}
+ $daemon stop
eend $?
}