diff options
author | Danilo Godec <danilo.godec@agenda.si> | 2011-08-10 14:31:38 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-08-10 12:46:50 +0000 |
commit | c9cbb91fa817542d5d03c165dfa072dcc11bc6c8 (patch) | |
tree | e5bed947d3b99d8b3085342564c2d90b8278c289 /testing/openswan/ipsec.initd | |
parent | ff73676914146bced1e9c9468d8ad91255125016 (diff) | |
download | aports-c9cbb91fa817542d5d03c165dfa072dcc11bc6c8.tar.bz2 aports-c9cbb91fa817542d5d03c165dfa072dcc11bc6c8.tar.xz |
testing/openswan: new aport
opeswan is an implementation of IPSEC, offering KLIPS and MAST interface
Diffstat (limited to 'testing/openswan/ipsec.initd')
-rw-r--r-- | testing/openswan/ipsec.initd | 29 |
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 $? +} + |