/etc/init.d/distmp3 is in distmp3 0.1.9.ds1-4.6.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
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 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 | #! /bin/sh
### BEGIN INIT INFO
# Provides: distmp3
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
### END INIT INFO
# distmp3host Start/stop distmp3.
# Version: distmp3host 0.1.9-4 04-Mar-2004 joshk@triplehelix.org
PATH=/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/bin/distmp3host
NAME=distmp3host
DESC="distributed audio encoder"
test -f $DAEMON || exit 0
if [ -f "/etc/default/distmp3" ]; then
. /etc/default/distmp3
if [ "$1" = start ] && [ -n "$runlevel" -o -n "$in_postinst" ] && [ "$STARTME" = 0 ]; then
echo "Not starting $DESC: dpkg-reconfigure distmp3 to change."
exit 0
fi
if [ -n "$NICELEVEL" ]; then
NICE="-N $NICELEVEL"
fi
fi
set -e
mkdir -p /var/run/distmp3
chown distmp3:distmp3 /var/run/distmp3
case "$1" in
start)
echo -n "Starting $DESC: $NAME"
start-stop-daemon --start --quiet -c distmp3:distmp3 $NICE --exec $DAEMON
echo "."
;;
stop)
echo -n "Stopping $DESC: $NAME"
start-stop-daemon --oknodo --stop --quiet \
--pidfile /var/run/distmp3/$NAME.pid --signal 15 >/dev/null
echo "."
;;
restart|force-reload)
echo -n "Restarting $DESC: $NAME"
start-stop-daemon --stop --quiet --oknodo --pidfile \
/var/run/distmp3/$NAME.pid --signal 15 >/dev/null
sleep 1
start-stop-daemon --start --quiet -c distmp3:distmp3 $NICE --exec $DAEMON
echo "."
;;
*)
echo "Usage: $0 {start|stop|restart|force-reload}" >&2
exit 1
;;
esac
exit 0
|