18
|
1 #!/bin/sh
|
|
2 #
|
|
3 # This file was automatically customized by debmake on Mon, 26 Feb 2001 12:24:04 +0100
|
|
4 #
|
|
5 # Written by Miquel van Smoorenburg <miquels@cistron.nl>.
|
|
6 # Modified for Debian GNU/Linux by Ian Murdock <imurdock@gnu.org>.
|
|
7 # Modified for Debian by Christoph Lameter <clameter@debian.org>
|
|
8
|
|
9 PATH=/bin:/usr/bin:/sbin:/usr/sbin
|
|
10 DAEMON=/usr/sbin/mplayer
|
|
11 # The following value is extracted by debstd to figure out how to generate
|
|
12 # the postinst script. Edit the field to change the way the script is
|
|
13 # registered through update-rc.d (see the manpage for update-rc.d!)
|
|
14 FLAGS="defaults 50"
|
|
15
|
|
16 test -f $DAEMON || exit 0
|
|
17
|
|
18 case "$1" in
|
|
19 start)
|
|
20 start-stop-daemon --start --verbose --exec $DAEMON
|
|
21 ;;
|
|
22 stop)
|
|
23 start-stop-daemon --stop --verbose --exec $DAEMON
|
|
24 ;;
|
|
25 #reload)
|
|
26 #
|
|
27 # If the daemon can reload its config files on the fly
|
|
28 # for example by sending it SIGHUP, do it here.
|
|
29 #
|
|
30 # If the daemon responds to changes in its config file
|
|
31 # directly anyway, make this a do-nothing entry.
|
|
32 #
|
|
33 # start-stop-daemon --stop --signal 1 --verbose --exec $DAEMON
|
|
34 # ;;
|
|
35 restart|force-reload)
|
|
36 #
|
|
37 # If the "reload" option is implemented, move the "force-reload"
|
|
38 # option to the "reload" entry above. If not, "force-reload" is
|
|
39 # just the same as "restart".
|
|
40 #
|
|
41 start-stop-daemon --stop --verbose --exec $DAEMON
|
|
42 sleep 1
|
|
43 start-stop-daemon --start --verbose --exec $DAEMON
|
|
44 ;;
|
|
45 *)
|
|
46 echo "Usage: /etc/init.d/mplayer {start|stop|restart|force-reload}"
|
|
47 exit 1
|
|
48 ;;
|
|
49 esac
|
|
50
|
|
51 exit 0
|