wok-stable rev 7043
Fixed cupd to check if PIDFILE exist before running cups.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Mon Nov 01 00:34:23 2010 +0000 (2010-11-01) |
parents | 1efdeedc622b |
children | 8e6734b0589d |
files | cups/stuff/etc/init.d/cupsd |
line diff
1.1 --- a/cups/stuff/etc/init.d/cupsd Mon Nov 01 00:08:44 2010 +0000 1.2 +++ b/cups/stuff/etc/init.d/cupsd Mon Nov 01 00:34:23 2010 +0000 1.3 @@ -22,9 +22,15 @@ 1.4 status 1.5 ;; 1.6 start) 1.7 - echo -n "Starting $DESC: $NAME... " 1.8 - $DAEMON $OPTIONS 1.9 - status 1.10 + if [ ! -e $PIDFILE ]; then 1.11 + echo -n "Starting $DESC: $NAME... " 1.12 + $DAEMON $OPTIONS 1.13 + status 1.14 + else 1.15 + echo -n "Not starting $DESC: $DESC is already running" 1.16 + false 1.17 + status 1.18 + fi 1.19 ;; 1.20 *) 1.21 echo ""