wok annotate 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
rev   line source
pascal@2193 1 #!/bin/sh
pascal@2193 2 # /etc/init.d/gpm : Start, stop and restart gpm server on SliTaz, at
pascal@2193 3 # boot time or with the command line.
pascal@2193 4 #
pascal@2193 5 # To start gpm server at boot time, just put mysql in the $RUN_DAEMONS
pascal@2193 6 # variable of /etc/rcS.conf and configure options with /etc/daemons.conf
pascal@2193 7 #
pascal@2193 8 . /etc/init.d/rc.functions
pascal@2193 9 . /etc/daemons.conf
pascal@2193 10
pascal@2193 11 NAME=gpm
pascal@2193 12 DESC="gpm server"
pascal@2193 13 DAEMON=/usr/sbin/gpm
pascal@2193 14 OPTIONS=$GPM_OPTIONS
pascal@2193 15 [ -n "$OPTIONS" ] || OPTIONS="-m /dev/psaux -t ps2"
pascal@2193 16
pascal@2193 17 case "$1" in
pascal@2193 18 start)
pascal@2193 19 $DAEMON $OPTIONS
pascal@2193 20 status
pascal@2193 21 ;;
pascal@2193 22 stop)
pascal@2193 23 $DAEMON -k
pascal@2193 24 status
pascal@2193 25 ;;
pascal@2193 26 restart)
pascal@2193 27 $DAEMON -k
pascal@2193 28 status
pascal@2193 29 $DAEMON $OPTIONS
pascal@2193 30 status
pascal@2193 31 ;;
pascal@2193 32 *)
pascal@2193 33 echo ""
pascal@2193 34 echo -e "\033[1mUsage:\033[0m /etc/init.d/`basename $0` [start|stop|restart]"
pascal@2193 35 echo ""
pascal@2193 36 exit 1
pascal@2193 37 ;;
pascal@2193 38 esac
pascal@2193 39
pascal@2193 40 exit 0