aboutsummaryrefslogtreecommitdiffstats
path: root/main/openswan/ipsec.initd
blob: 32a06008ab396cedcedbb309e64a648447f754b9 (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

# Openswan 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 $?
}