diff options
author | Santiago M. Mola <coldwind@gentoo.org> | 2006-09-20 17:33:54 +0000 |
---|---|---|
committer | Santiago M. Mola <coldwind@gentoo.org> | 2006-09-20 17:33:54 +0000 |
commit | be75a6b8152d62e7162235d9f201fee23177a6c5 (patch) | |
tree | 00da31c895d819bf04794d54b8d5e5f171a643f9 /net-p2p/museek+/files/init.d-museekd | |
parent | profiles/use.local.desc: QSA added for net-p2p/museek+. (diff) | |
download | sunrise-be75a6b8152d62e7162235d9f201fee23177a6c5.tar.gz sunrise-be75a6b8152d62e7162235d9f201fee23177a6c5.tar.bz2 sunrise-be75a6b8152d62e7162235d9f201fee23177a6c5.zip |
net-p2p/museek+: Initial ebuild for bug #140047 Thanks to SeeSchloss <seeschloss@seeschloss.org> for the init scripts.
svn path=/sunrise/; revision=1291
Diffstat (limited to 'net-p2p/museek+/files/init.d-museekd')
-rw-r--r-- | net-p2p/museek+/files/init.d-museekd | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/net-p2p/museek+/files/init.d-museekd b/net-p2p/museek+/files/init.d-museekd new file mode 100644 index 000000000..542701025 --- /dev/null +++ b/net-p2p/museek+/files/init.d-museekd @@ -0,0 +1,35 @@ +#!/sbin/runscript +# Copyright 2004-2005 SeeSchloss +# Distributed under the terms of the GNU General Public License v2 + +# NB: Config is in /etc/conf.d/museek + +opts="start stop restart reload rescan" + +depend() { + need net +} + +start() { + ebegin "Starting museekd as user $MUSEEKD_USER" + start-stop-daemon --start --quiet --exec /usr/bin/museekd --chuid $MUSEEKD_USER --background --pidfile /var/run/museekd.pid --make-pidfile -- -c $MUSEEKD_CONFIG + eend $? "Failed to start museekd" +} + +stop() { + ebegin "Stopping museekd" + start-stop-daemon --stop --quiet --pidfile /var/run/museekd.pid + eend $? "Failed to stop museekd" +} + +rescan() { + ebegin "Scanning museek shares" + muscan -c $MUSEEKD_CONFIG + eend $? "Failed to rescan shares" +} + +reload() { + ebegin "Reloading museek shares" + kill -HUP `cat /var/run/museekd.pid` + eend $? "Impossible to reload shares ?" +} |