summaryrefslogtreecommitdiff
path: root/packaging/gentoo/net-dialup/radsecproxy/files/radsecproxy.initd
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/gentoo/net-dialup/radsecproxy/files/radsecproxy.initd')
-rwxr-xr-xpackaging/gentoo/net-dialup/radsecproxy/files/radsecproxy.initd24
1 files changed, 24 insertions, 0 deletions
diff --git a/packaging/gentoo/net-dialup/radsecproxy/files/radsecproxy.initd b/packaging/gentoo/net-dialup/radsecproxy/files/radsecproxy.initd
new file mode 100755
index 0000000..2b11b9c
--- /dev/null
+++ b/packaging/gentoo/net-dialup/radsecproxy/files/radsecproxy.initd
@@ -0,0 +1,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 $?
+}