diff options
Diffstat (limited to 'media-sound/peercast/files/peercast.initd')
-rwxr-xr-x | media-sound/peercast/files/peercast.initd | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/media-sound/peercast/files/peercast.initd b/media-sound/peercast/files/peercast.initd new file mode 100755 index 000000000000..636e2c0dfe78 --- /dev/null +++ b/media-sound/peercast/files/peercast.initd @@ -0,0 +1,28 @@ +#!/sbin/runscript +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-sound/peercast/files/peercast.initd,v 1.1 2009/05/22 00:56:14 ssuominen Exp $ + +pidfile=/var/run/peercast.pid + +depend() { + need net +} + +start() { + ebegin "Starting peercast daemon" + start-stop-daemon --start --quiet --background \ + --make-pidfile --pidfile ${pidfile} \ + --chuid nobody:audio \ + --exec /usr/sbin/peercast -- \ + -i /usr/share/peercast/peercast.ini \ + -l /var/log/peercast.log \ + -P /usr/share/peercast + eend $? +} + +stop() { + ebegin "Stopping peercast daemon" + start-stop-daemon --stop --quiet --pidfile ${pidfile} + eend $? +} |