wok-4.x view gpm/stuff/etc/init.d/gpm @ rev 8871
Fix libnjb deps
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Sat Feb 26 06:15:14 2011 +0100 (2011-02-26) |
parents | |
children |
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