On Sun, 12 Sep 2010 15:26:12 +0200, Julien Cristau wrote:

> > +   start-stop-daemon --start --verbose --exec $DAEMON
> > +   case "$?" in
> > +           0|1) # daemon successfully started or already running
> > +                   putonline
> > +                   ;;
> > +           2) # daemon could not be started
> > +                   echo "$DAEMON failed to start."
> > +                   exit 1
> > +                   ;;
> > +   esac

> >     start-stop-daemon --start --quiet --exec $DAEMON -- -r
> > +   case "$?" in
> > +           0|1) # daemon successfully started or still running
> > +                   putonline
> > +                   ;;
> > +           2) # daemon could not be started
> > +                   echo "$DAEMON failed to restart."
> > +                   rm -f /var/run/chrony-ppp-up
> > +                   exit 1
> > +                   ;;
> > +   esac

 
> Any reason you're not using start-stop-daemon --oknodo?

Not really; in my first version I had 0/1/2 in separate patterns in
order to `echo' messages like in the original version. Later I
decided that there's already enough output and merged 0|1.

I can cancel this upload and make a new one with --oknodo, but AFAICS
it wouldn't change the functionality.

Cheers,
gregor

-- 
 .''`.   http://info.comodo.priv.at/ -- GPG key IDs: 0x8649AA06, 0x00F3CFE4
 : :' :  Debian GNU/Linux user, admin, & developer - http://www.debian.org/
 `. `'   Member of VIBE!AT & SPI, fellow of Free Software Foundation Europe
   `-    NP: Solomon Burke: The Other Side Of The Coin

Attachment: signature.asc
Description: Digital signature

Reply via email to