> This is ancient stuff. ancient doesn't necessarily mean bad > piper:~# /etc/init.d/apache2 start || echo failure > #[345] > Starting web server (apache2)... . > piper:~# /etc/init.d/apache2 start || echo failure > #[346] > Starting web server (apache2)... httpd (pid 4175) already running. > piper:~# /etc/init.d/apache2 stop || echo failure > #[346] > Stopping web server (apache2)... . > piper:~# /etc/init.d/apache2 stop || echo failure > #[347] > Stopping web server (apache2)... httpd (no pid file) not running. well -- if you look inside that script it makes limited use of start-stop-daemon facility at all and just doesn't suppress output to APACHE2CTL... -- I don't consider it a good practice since it can easily violate LSB guidelines (such as a single line etc) to use log_*_msg functions for output from init scripts... I think even that it is worth filing a bug against apache2
> > even if the daemon is running (return 1 from do_start) return of init > > script is 0. > Yeah, I am only talking about the output. Not the exit status. ok - we narrowed it down to just output (as for exit status also see http://refspecs.freestandards.org/LSB_3.1.0/LSB-Core-generic/LSB-Core-generic/iniscrptact.html) since start action when daemon already is running considered to be a normal (return 0) - then it should simply follow http://www.debian.org/doc/debian-policy/ch-opersys.html#s9.4 Please argue not by an example on possibly broken scripts but references to policy/dev-ref -- that would make it easier to properly resolve the issue -- .-. =------------------------------ /v\ ----------------------------= Keep in touch // \\ (yoh@|www.)onerussian.com Yaroslav Halchenko /( )\ ICQ#: 60653192 Linux User ^^-^^ [175555]
pgpYX9LDazoEH.pgp
Description: PGP signature

