projects/aports·blob master · refs

20 lines · 445 B

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
6DAEMON=/usr/sbin/rtapd
7USER=rtnppd
8
9start() {
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
16stop() {
17 ebegin "Stopping $(basename $DAEMON)"
18 start-stop-daemon --stop --exec ${DAEMON}
19 eend $?
20}