From 71fab9c3e4b7f71148081249321f9509d997a334 Mon Sep 17 00:00:00 2001 From: venaas Date: Tue, 19 Jun 2007 09:29:57 +0000 Subject: added package files git-svn-id: https://svn.testnett.uninett.no/radsecproxy/branches/release-1.0@144 e88ac4ed-0b26-0410-9574-a7f39faa03bf --- .../net-dialup/radsecproxy/files/radsecproxy.initd | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 packaging/gentoo/net-dialup/radsecproxy/files/radsecproxy.initd (limited to 'packaging/gentoo/net-dialup/radsecproxy/files/radsecproxy.initd') 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 $? +} -- cgit v1.1