wok diff cups/stuff/etc/init.d/cupsd @ rev 10960
Add: libgooglepinyin, fcitx-googlepinyin
author | Liu Peng <hipeng@yahoo.com> |
---|---|
date | Tue Sep 20 20:37:05 2011 +0800 (2011-09-20) |
parents | 9d04e92aeeb7 |
children | bd8f09202680 |
line diff
1.1 --- a/cups/stuff/etc/init.d/cupsd Tue Feb 10 16:53:39 2009 +0100 1.2 +++ b/cups/stuff/etc/init.d/cupsd Tue Sep 20 20:37:05 2011 +0800 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 ""