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

Re: Init script verbosity

On Sun, 06 Sep 2009, Magnus Holmgren wrote:
> /etc/init.d/skeleton is mentioned in section 9.3.5 as an example to base init 
> scripts on. As you may know, it suppresses the calls to log_daemon_msg 
> ("Starting $DESC: $NAME") and log_end_msg ("." or " failed!") during start and 
> stop if $VERBOSE = "no".
> Most init scripts do not follow this example, I believe. Section 9.4 makes no 
> mention of $VERBOSE.
> What's the best practice/consensus? Should policy be amended? Should 
> /etc/init.d/skeleton be fixed?

/etc/init.d/skeleton should be fixed.  VERBOSE=no is supposed to be used to
shut up the unimportant stuff (such as initscripts telling the user they didn't
do anything because /etc/default/foo was not configured yet, etc).

  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh

Reply to: