blob: 62c8eeb0a98afeb9fdcd6cc2c136d96cce189cb8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
#!/sbin/runscript
# Copyright 1999-2011 Gentoo Foundation
# 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.5 2011/12/13 23:11:35 radhermit Exp $
extra_commands="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 $?
}
|