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

cyrus-sasl: fix bdeps (need openssl-dev + rm libkrb5, if krb5 support is needed we must add krb5-dev to bdeps)
author Christophe Lincoln <pankso@slitaz.org>
date Wed May 25 00:25:23 2011 +0200 (2011-05-25)
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