blob: bd8e07b94bd9ae0fbb6392b6377ae5d34f80a3ac (
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
|
#!/sbin/runscript
depend() {
need localmount
}
checkconfig() {
if ! [ -f /etc/shoutcast/sc_serv.conf ]; then
eerror "Can't find /etc/shoutcast/sc_serv.conf!"
return 1
fi
return 0
}
start() {
checkconfig || return 1
ebegin "Starting SHOUTcast"
start-stop-daemon --background --start --quiet --user shoutcast \
--group nogroup --make-pidfile --pidfile /var/run/sc_serv.pid \
--exec /opt/bin/sc_serv /etc/shoutcast/sc_serv.conf
eend $?
}
stop() {
ebegin "Stopping SHOUTcast"
start-stop-daemon --stop --pidfile /var/run/sc_serv.pid --name sc_serv
eend $?
}
|