wok view cups/stuff/etc/init.d/cupsd @ rev 1613

Add xorg-setxkbmap
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Oct 19 20:39:05 2008 +0000 (2008-10-19)
parents ca2ef094c5d6
children 2d810185f0ce
line source
1 #!/bin/sh
2 # /etc/init.d/cups: Start, stop and restart Cups deamon on SliTaz, at boot
3 # time or with the command line.
4 #
5 # To start daemon at boot time, just put the right name 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=Cupsd
12 DESC="cups deamon"
13 DAEMON=/usr/sbin/cupsd
14 OPTIONS=$CUPSD_OPTIONS
15 PIDFILE=/var/run/cups/cups.sock
17 case "$1" in
18 stop)
19 echo -n "Stopping $DESC: $NAME... "
20 killall -q cupsd
21 status
22 ;;
23 start)
24 if ps | grep $DAEMON; then
25 echo "$NAME is already running... "
26 exit 0
27 fi
28 echo -n "Starting $DESC: $NAME... "
29 $DAEMON $OPTIONS
30 status
31 ;;
32 *)
33 echo ""
34 echo -e "\033[1mUsage:\033[0m /etc/init.d/`basename $0` [start|stop]"
35 echo ""
36 exit 1
37 ;;
38 esac
40 exit 0