]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - src/initscripts/init.d/cups
Changed checkfs to auto reboot after correctable fsck fixes.
[people/pmueller/ipfire-2.x.git] / src / initscripts / init.d / cups
1 #!/bin/sh
2 # Begin $rc_base/init.d/cups
3
4 #$LastChangedBy: bdubbs $
5 #$Date: 2005-08-01 14:29:19 -0500 (Mon, 01 Aug 2005) $
6
7 # Start or stop the CUPS server based upon the first argument to the script.
8
9 . /etc/sysconfig/rc
10 . $rc_functions
11
12 case $1 in
13 start)
14 boot_mesg "Starting CUPS Printserver..."
15 loadproc /usr/sbin/cupsd
16 ;;
17
18 stop)
19 boot_mesg "Stopping CUPS Printserver..."
20 killproc /usr/sbin/cupsd
21 ;;
22
23 reload)
24 boot_mesg "Reloading CUPS Printserver..."
25 reloadproc /usr/sbin/cupsd
26 ;;
27
28 restart)
29 $0 stop
30 sleep 1
31 $0 start
32 ;;
33
34 status)
35 statusproc /usr/sbin/cupsd
36 ;;
37
38 *)
39 echo "Usage: $0 {start|stop|reload|restart|status}"
40 exit 1
41 ;;
42 esac
43
44 # End $rc_base/init.d/cups