From a57b8503908321011d322f3f641d09fa52e83640 Mon Sep 17 00:00:00 2001 From: piernov Date: Mon, 30 Apr 2012 16:50:36 +0200 Subject: Revert "ts les services dans base ainsi que les dépendances de libgl" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cups/cups | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 cups/cups (limited to 'cups/cups') 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 -- cgit v1.2.3-54-g00ecf