annotate debian/init.d.ex @ 70:2d68bae1aca3

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