X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage5%2Fbootscripts%2Fcups;fp=stage5%2Fbootscripts%2Fcups;h=77345d6c0a14ee5387f1ac2dc242fa26dd4a11d8;hb=b51ceee0b72987ab3a9533c6560dd538b6332476;hp=0000000000000000000000000000000000000000;hpb=82375c336cb78838feda12d1501112c86a436d4c;p=hvlinux.git diff --git a/stage5/bootscripts/cups b/stage5/bootscripts/cups new file mode 100755 index 0000000..77345d6 --- /dev/null +++ b/stage5/bootscripts/cups @@ -0,0 +1,40 @@ +#!/bin/sh + +# cups + +# Source functions library +source /etc/rc.d/init.d/functions + +log_script_name "$0 $*" + +# See how we were called +case "$1" in + start) + cmd_run_log_box_warn "CUPS start" loadproc cupsd + ;; + + stop) + cmd_run_log_box_warn "CUPS stop" killproc cupsd + ;; + + reload) + cmd_run_log_box_warn "CUPS reload" reloadproc cupsd + ;; + + restart) + $0 stop + sleep 1 + $0 start + ;; + + status) + statusproc cupsd + ;; + + *) + echo "Usage: $0 {reload|restart|start|status|stop}" + exit ${EXIT_CODE_FAILURE} + ;; +esac + +exit $?