# HG changeset patch # User Christopher Rogers # Date 1288571663 0 # Node ID c840214a83b8fc236d93e2707025bedc75ead546 # Parent 1efdeedc622b4b4f621275e0bd0736bec1aa027c Fixed cupd to check if PIDFILE exist before running cups. diff -r 1efdeedc622b -r c840214a83b8 cups/stuff/etc/init.d/cupsd --- a/cups/stuff/etc/init.d/cupsd Mon Nov 01 00:08:44 2010 +0000 +++ b/cups/stuff/etc/init.d/cupsd Mon Nov 01 00:34:23 2010 +0000 @@ -22,9 +22,15 @@ status ;; start) - echo -n "Starting $DESC: $NAME... " - $DAEMON $OPTIONS - status + if [ ! -e $PIDFILE ]; then + echo -n "Starting $DESC: $NAME... " + $DAEMON $OPTIONS + status + else + echo -n "Not starting $DESC: $DESC is already running" + false + status + fi ;; *) echo ""