diff options
Diffstat (limited to 'media-video/feng-git/files/feng.rc')
-rwxr-xr-x | media-video/feng-git/files/feng.rc | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/media-video/feng-git/files/feng.rc b/media-video/feng-git/files/feng.rc new file mode 100755 index 0000000..deb8615 --- /dev/null +++ b/media-video/feng-git/files/feng.rc @@ -0,0 +1,27 @@ +#!/sbin/runscript +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +FENG="/usr/bin/feng" +PIDFILE="/var/run/feng.pid" + +depend() { + use net dns +} + +start() { + ebegin "Starting feng" + start-stop-daemon --start --quiet --background \ + --make-pidfile \ + --pidfile ${PIDFILE} \ + --exec /usr/bin/feng \ + -- ${FENG_OPTS} + eend $? +} + +stop() { + ebegin "Stopping feng" + start-stop-daemon --stop -p ${PIDFILE} + eend $? +} |