diff options
author | piernov <piernov@piernov.org> | 2012-04-30 16:50:36 +0200 |
---|---|---|
committer | piernov <piernov@piernov.org> | 2012-04-30 16:50:36 +0200 |
commit | a57b8503908321011d322f3f641d09fa52e83640 (patch) | |
tree | df8c699d15d80b025d399f24213925f908bdc301 /cups/cups | |
parent | 7f6611d3e58bc3a9c9962cbb4cee94f3e987693d (diff) | |
download | nutyx-extra-a57b8503908321011d322f3f641d09fa52e83640.tar.gz nutyx-extra-a57b8503908321011d322f3f641d09fa52e83640.tar.bz2 nutyx-extra-a57b8503908321011d322f3f641d09fa52e83640.tar.xz nutyx-extra-a57b8503908321011d322f3f641d09fa52e83640.zip |
Revert "ts les services dans base ainsi que les dépendances de libgl"
Diffstat (limited to 'cups/cups')
-rw-r--r-- | cups/cups | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/cups/cups b/cups/cups new file mode 100644 index 000000000..81aae6992 --- /dev/null +++ b/cups/cups @@ -0,0 +1,49 @@ +#!/bin/sh +# Begin $rc_base/init.d/cups + +#$LastChangedBy: bdubbs $ +#$Date: 2007/09/26 14:15:13 $ +#$Id: cups,v 1.1 2007/09/26 14:15:13 install Exp $ +# Start or stop the CUPS server based upon the first argument to the script. + +. /etc/sysconfig/rc +. $rc_functions +newgroup=lp +newuser=lp +newid=9 +getent group $newgroup > /dev/null || /usr/sbin/groupadd -g $newid $newgroup +getent passwd $newuser > /dev/null || /usr/sbin/useradd -g $newgroup \ +-u $newid -d /dev/null -c "Print Service User" -s /bin/false -u $newid $newuser +case $1 in + start) + boot_mesg "Starting CUPS Printserver..." + loadproc /usr/sbin/cupsd + ;; + + stop) + boot_mesg "Stopping CUPS Printserver..." + killproc /usr/sbin/cupsd + ;; + + reload) + boot_mesg "Reloading CUPS Printserver..." + reloadproc /usr/sbin/cupsd + ;; + + restart) + $0 stop + sleep 1 + $0 start + ;; + + status) + statusproc /usr/sbin/cupsd + ;; + + *) + echo "Usage: $0 {start|stop|reload|restart|status}" + exit 1 + ;; +esac + +# End $rc_base/init.d/cups |