aboutsummaryrefslogtreecommitdiffstats
path: root/main/strongswan/strongswan.initd
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-02-05 14:02:47 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-02-05 14:05:18 +0000
commitbc05b5ad6e378b520fcac69e97bcbf9a08f3a2c1 (patch)
tree9a5a964117956a60076bb32c2b6b5fb32c66fe8f /main/strongswan/strongswan.initd
parent28e51a3afc4eca5015576b8e8692014ab2a18434 (diff)
downloadaports-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.initd31
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 $?
+}