diff options
author | Michael Mason <ms13sp@gmail.com> | 2009-10-13 12:33:07 +0000 |
---|---|---|
committer | Michael Mason <ms13sp@gmail.com> | 2009-10-13 12:33:07 +0000 |
commit | c09a8f931dced1c662fde492a9969a9ca5634978 (patch) | |
tree | dabc902d45a0dc8f81010039ead16c86096511a8 /unstable/gnump3d/gnump3d.initd | |
parent | dd0595e5f4d36b5549a5a80a8a7bcb8eccb33e7d (diff) | |
download | aports-c09a8f931dced1c662fde492a9969a9ca5634978.tar.bz2 aports-c09a8f931dced1c662fde492a9969a9ca5634978.tar.xz |
unstable/gnump3d Initial Commit
Diffstat (limited to 'unstable/gnump3d/gnump3d.initd')
-rw-r--r-- | unstable/gnump3d/gnump3d.initd | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/unstable/gnump3d/gnump3d.initd b/unstable/gnump3d/gnump3d.initd new file mode 100644 index 000000000..43290ee30 --- /dev/null +++ b/unstable/gnump3d/gnump3d.initd @@ -0,0 +1,37 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/www/viewcvs.gentoo.org/raw_cvs/gentoo-x86/media-sound/gnump3d/files/gnump3d.init.d,v 1.4 2008/06/03 14:52:33 beandog Exp $ + +opts="start stop index" + +depend() { + need net + after netmount nfsmount +} + +start() { + ebegin "Starting gnump3d" + + if [ ${DO_INDEX} -eq 1 ]; then + ebegin "Updating index of music files (may take a while for the first time)" + /usr/bin/gnump3d-index + eend $? + fi + + start-stop-daemon --start --quiet --exec /usr/bin/gnump3d2 --make-pidfile \ + --pidfile /var/run/gnump3d.pid --background -- --quiet + eend $? +} + +stop() { + ebegin "Stopping gnump3d" + start-stop-daemon --stop --quiet --pidfile /var/run/gnump3d.pid + eend $? +} + +index() { + ebegin "Indexing music files" + /usr/bin/gnump3d-index + eend $? +} |