| 1 | #!/sbin/openrc-run |
| 2 | # Copyright 1999-2007 Gentoo Foundation |
| 3 | # Distributed under the terms of the GNU General Public License v2 |
| 4 | # $Header: $ |
| 5 | |
| 6 | DAEMON=/usr/sbin/rtapd |
| 7 | USER=rtnppd |
| 8 | |
| 9 | start() { |
| 10 | ebegin "Starting $(basename $DAEMON)" |
| 11 | start-stop-daemon --start --user ${USER} --exec ${DAEMON} \ |
| 12 | -- -C /etc/rtnppd/rtapd.conf ${RTAPD_OPTS} |
| 13 | eend $? |
| 14 | } |
| 15 | |
| 16 | stop() { |
| 17 | ebegin "Stopping $(basename $DAEMON)" |
| 18 | start-stop-daemon --stop --exec ${DAEMON} |
| 19 | eend $? |
| 20 | } |