diff options
Diffstat (limited to 'media-sound/gnump3d/files/gnump3d.init.d')
-rw-r--r-- | media-sound/gnump3d/files/gnump3d.init.d | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/media-sound/gnump3d/files/gnump3d.init.d b/media-sound/gnump3d/files/gnump3d.init.d index d20da60d369d..d28b4b470da2 100644 --- a/media-sound/gnump3d/files/gnump3d.init.d +++ b/media-sound/gnump3d/files/gnump3d.init.d @@ -1,14 +1,22 @@ #!/sbin/runscript # Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-sound/gnump3d/files/gnump3d.init.d,v 1.1 2004/03/30 18:46:34 eradicator Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-sound/gnump3d/files/gnump3d.init.d,v 1.2 2004/04/24 22:46:34 eradicator Exp $ 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 $? |