]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - init/PrintingServices
Merge changes from 1.4svn-r7067.
[thirdparty/cups.git] / init / PrintingServices
index bbe5ac36b2b21f29c9dad13a8fc6a1dfdbbcdade..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 100755 (executable)
@@ -1,45 +0,0 @@
-#!/bin/sh
-
-##
-# PrintingServices - a.k.a. CUPS
-##
-
-. /etc/rc.common
-
-StartService ()
-{
-       if [ "${CUPS:=-AUTOMATIC-}" = "-AUTOMATIC-" ]; then
-               ConsoleMessage "Starting printing services"
-               /usr/sbin/cupsd
-       elif [ "${CUPS:=-AUTOMATIC-}" = "-YES-" ]; then
-               ConsoleMessage "Starting printing services"
-               /usr/sbin/cupsd
-       fi
-}
-
-StopService ()
-{
-       # Until cupsd has a pid file...
-       pid=`ps ax | awk '{if (match($5, ".*/cupsd$") || $5 == "cupsd") print $1}'`
-       if test "$pid" != ""; then
-               ConsoleMessage "Stopping printing services"
-               kill "${pid}"
-       fi
-}
-
-RestartService ()
-{
-       # Until cupsd has a pid file...
-       pid=`ps ax | awk '{if (match($5, ".*/cupsd$") || $5 == "cupsd") print $1}'`
-       if test "x$pid" != x; then
-               ConsoleMessage "Restarting printing services"
-               kill -HUP "${pid}"
-       else
-               if [ "${CUPS:=-AUTOMATIC-}" = "-AUTOMATIC-" -o "${CUPS:=-AUTOMATIC-}" = "-YES-" ]; then
-                       ConsoleMessage "Starting printing services"
-                       /usr/sbin/cupsd
-               fi
-       fi
-}
-
-RunService "$1"