wok view gpm/stuff/etc/init.d/gpm @ rev 4406

Up: sonata (1.6.2.1) and fix deps
author Paul Issott <paul@slitaz.org>
date Tue Oct 20 20:34:03 2009 +0000 (2009-10-20)
parents
children 8ebec64e4191
line source
1 #!/bin/sh
2 # /etc/init.d/gpm : Start, stop and restart gpm server on SliTaz, at
3 # boot time or with the command line.
4 #
5 # To start gpm server at boot time, just put mysql in the $RUN_DAEMONS
6 # variable of /etc/rcS.conf and configure options with /etc/daemons.conf
7 #
8 . /etc/init.d/rc.functions
9 . /etc/daemons.conf
11 NAME=gpm
12 DESC="gpm server"
13 DAEMON=/usr/sbin/gpm
14 OPTIONS=$GPM_OPTIONS
15 [ -n "$OPTIONS" ] || OPTIONS="-m /dev/psaux -t ps2"
17 case "$1" in
18 start)
19 $DAEMON $OPTIONS
20 status
21 ;;
22 stop)
23 $DAEMON -k
24 status
25 ;;
26 restart)
27 $DAEMON -k
28 status
29 $DAEMON $OPTIONS
30 status
31 ;;
32 *)
33 echo ""
34 echo -e "\033[1mUsage:\033[0m /etc/init.d/`basename $0` [start|stop|restart]"
35 echo ""
36 exit 1
37 ;;
38 esac
40 exit 0