wok-6.x view gpm/stuff/etc/init.d/gpm @ rev 14651
get-libaacs: typos
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jun 04 12:23:01 2013 +0200 (2013-06-04) |
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