source: bootscripts-standard/cblfs/init.d/cups@ 7254832

Last change on this file since 7254832 was 7df280d, checked in by Joe Ciccone <jciccone@…>, 17 years ago

Change /bin/sh to /bin/bash in the bootscripts because the bootscripts use bashisms. Having ash linked to sh will cause errors. Thanks to Bigdassaved for providing the diff and Copper for bring up the issue.

  • Property mode set to 100644
File size: 701 bytes
Line 
1#!/bin/bash
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
12case $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 ;;
42esac
43
44# End $rc_base/init.d/cups
Note: See TracBrowser for help on using the repository browser.