summaryrefslogtreecommitdiffstats
path: root/testing/libreswan/ipsec.initd
blob: d5bb222ef831f35317c33512a831e1ed05fd8e9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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 $?
}