Last change
on this file since 84f3ac2 was 2167cfe, checked in by William Harrington <kb0iic@…>, 11 years ago |
bootscripts are the scripts used for the sysvinit book.
|
-
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 |
|
---|
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
|
---|
Note:
See
TracBrowser
for help on using the repository browser.