[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: A Standard for Console Messages



On Sun, 29 Dec 1996, Johnie Ingram wrote:

> "Christian" == Christian Schwarz <schwarz@monet.m.isar.de> writes:
> 
> Christian> in the script. If you have more than one daemon to
> Christian> start, you should do the following:
> Christian> 
> Christian>      echo -n "Starting remote filesystem services: "
> Christian>      echo -n "nfsd "; start-stop-daemon --start nfsd
> Christian>      echo -n "mountd "; start-stop-daemon --start mountd
> Christian>      echo -n "ugidd"; start-stop-daemon --start ugidd
> Christian>      echo "."
> Christian> 
> Christian> This makes it possible for the user to see what takes so
> Christian> long and when the final daemon has been started.
> 
> I like the standard so far.
> 
> This part does not quite work, though, if any of the daemons are
> started conditionally, or if users are expected to comment out
> unnecessary lines.  For example, there would be an extra space before
> the period if "ugidd" were not started.
> 
> I suggest always putting the space at the beginning of the daemon name, like
> this:
> 
>      echo -n "Starting remote filesystem services:"
>      echo -n " nfsd"; start-stop-daemon --start nfsd
>      echo -n " mountd"; start-stop-daemon --start mountd
> #    echo -n " ugidd"; start-stop-daemon --start ugidd
>      echo "."
> 
> Though this means that if no daemon is started, the period would come
> immediately after the colon.  I'm not crazy about this aesthetically,
> but the only alternatives I see are putting two spaces before the
> first daemon name, or one space before the period, or using variables
> and lengthy tests to avoid printing anything if none of the daemons
> are to be started.

Ok, this is a good point. If all daemons are commented out the sys admin
could also comment out the first line and the last one (containing the
dot) and so this isn't really a problem.

I change the standard as you suggested.


Thanks,

Chris

--          _,,     Christian Schwarz
           / o \__   schwarz@monet.m..isar.de, schwarz@debian.org,
           !   ___;   schwarz@mathematik.tu-muenchen.de, bm955877@muenchen.org
           \  /        
  \\\______/  !        PGP-fp: 8F 61 EB 6D CF 23 CA D7  34 05 14 5C C8 DC 22 BA
   \          /         http://fatman.mathematik.tu-muenchen.de/~schwarz/
-.-.,---,-,-..---,-,-.,----.-.-
  "DIE ENTE BLEIBT DRAUSSEN!"


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-REQUEST@lists.debian.org . Trouble? e-mail to Bruce@Pixar.com


Reply to: