summaryrefslogtreecommitdiff
path: root/packaging/gentoo/net-dialup/radsecproxy/files/radsecproxy.initd
blob: 2b11b9cac93a621f0b35f165b4722cfdff4bc24c (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
#!/sbin/runscript

depend() {
	use logger dns
	need net
}

CMD="/usr/sbin/radsecproxy"

start() {
	ebegin "Starting radsecproxy"
	if test -n "${OPTS}" ; then
		start-stop-daemon --start --exec ${CMD} -- ${OPTS} >/dev/null 2>&1
	else
		start-stop-daemon --start --exec ${CMD} -- >/dev/null 2>&1
	fi
	eend $?
}

stop() {
	ebegin "Stopping radsecproxy"
	start-stop-daemon --stop --exec ${CMD}
	eend $?
}