diff options
author | venaas <venaas> | 2007-06-19 09:27:26 +0000 |
---|---|---|
committer | venaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf> | 2007-06-19 09:27:26 +0000 |
commit | 8e5146e56b9b0023f4c4e82fa1af4a01a0c9265f (patch) | |
tree | 8c109dedbd4db7bbd892bc7666331a06c86c5eae /packaging/gentoo/net-dialup/radsecproxy/files/radsecproxy.initd | |
parent | 7799f8b5b69dc62e1bc0d429a50d79e438c86cef (diff) |
added package files, note that some were also added in previous commit
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@143 e88ac4ed-0b26-0410-9574-a7f39faa03bf
Diffstat (limited to 'packaging/gentoo/net-dialup/radsecproxy/files/radsecproxy.initd')
-rwxr-xr-x | packaging/gentoo/net-dialup/radsecproxy/files/radsecproxy.initd | 24 |
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 $? +} |