diff options
author | Jeff Bilyk <jbilyk@gmail.com> | 2013-05-30 11:16:56 -0400 |
---|---|---|
committer | Jeff Bilyk <jbilyk@gmail.com> | 2013-05-30 11:16:56 -0400 |
commit | 4c3974c5dcde7f045cf39e1c0e555db58834466b (patch) | |
tree | 941fbe6d0cd2d00aba56bf8a4458fb58c5ac5b46 /main/rtapd/rtapd.initd | |
parent | 31acb47aad9a61eb6b1ab51ee00a25a26f786e33 (diff) | |
download | aports-4c3974c5dcde7f045cf39e1c0e555db58834466b.tar.bz2 aports-4c3974c5dcde7f045cf39e1c0e555db58834466b.tar.xz |
main/{rtapd, rtnppd}: moved from testing
Diffstat (limited to 'main/rtapd/rtapd.initd')
-rw-r--r-- | main/rtapd/rtapd.initd | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/main/rtapd/rtapd.initd b/main/rtapd/rtapd.initd new file mode 100644 index 0000000000..01fce242a6 --- /dev/null +++ b/main/rtapd/rtapd.initd @@ -0,0 +1,20 @@ +#!/sbin/runscript +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +DAEMON=/usr/sbin/rtapd +USER=rtnppd + +start() { + ebegin "Starting $(basename $DAEMON)" + start-stop-daemon --start --user ${USER} --exec ${DAEMON} \ + -- -C /etc/rtnppd/rtapd.conf ${RTAPD_OPTS} + eend $? +} + +stop() { + ebegin "Stopping $(basename $DAEMON)" + start-stop-daemon --stop --exec ${DAEMON} + eend $? +} |