]> git.ipfire.org Git - ipfire-2.x.git/blame - src/init.d/cups
Hinzugefuegt:
[ipfire-2.x.git] / src / init.d / cups
CommitLineData
60cbd6e7
MT
1#!/bin/sh
2# Begin /etc/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/init.d/init-functions
10
11case $1 in
12 start)
13 boot_mesg "Starting CUPS Printserver..."
14 loadproc /usr/sbin/cupsd
15 ;;
16
17 stop)
18 boot_mesg "Stopping CUPS Printserver..."
19 killproc /usr/sbin/cupsd
20 ;;
21
22 reload)
23 boot_mesg "Reloading CUPS Printserver..."
24 reloadproc /usr/sbin/cupsd
25 ;;
26
27 restart)
28 $0 stop
29 sleep 1
30 $0 start
31 ;;
32
33 status)
34 statusproc /usr/sbin/cupsd
35 ;;
36
37 *)
38 echo "Usage: $0 {start|stop|reload|restart|status}"
39 exit 1
40 ;;
41esac
42
43# End /etc/init.d/cups