diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2014-02-05 14:02:47 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2014-02-05 14:05:18 +0000 |
commit | bc05b5ad6e378b520fcac69e97bcbf9a08f3a2c1 (patch) | |
tree | 9a5a964117956a60076bb32c2b6b5fb32c66fe8f /main/strongswan/strongswan.initd | |
parent | 28e51a3afc4eca5015576b8e8692014ab2a18434 (diff) | |
download | aports-bc05b5ad6e378b520fcac69e97bcbf9a08f3a2c1.tar.bz2 aports-bc05b5ad6e378b520fcac69e97bcbf9a08f3a2c1.tar.xz |
main/strongswan: moved from testing
Diffstat (limited to 'main/strongswan/strongswan.initd')
-rw-r--r-- | main/strongswan/strongswan.initd | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/main/strongswan/strongswan.initd b/main/strongswan/strongswan.initd new file mode 100644 index 0000000000..156883f110 --- /dev/null +++ b/main/strongswan/strongswan.initd @@ -0,0 +1,31 @@ +#!/sbin/runscript + +depend() { + need net + after firewall +} + +start() { + ebegin "Starting StrongSwan" + ipsec start + eend $? +} + +stop () { + ebegin "Stopping StrongSwan" + ipsec stop + eend $? +} +restart() { + ebegin "Restarting StrongSwan" + svc_stop + sleep 2 + svc_start + eend $? +} + +status() { + ebegin "StrongSwan Status (verbose):" + ipsec statusall + eend $? +} |