Re: lsb-base "Fancy output"; please test lsb-base/experimental (4.1+Debian0+fancy0)
"Didier 'OdyX' Raboud" <[email protected]>
| Newsgroups | gmane.linux.debian.devel.lsb |
|---|---|
| Organization | Debian, the Universal OS |
| Message-ID | <[email protected]> |
Hi Martin,
Le 11.04.2012 22:09, Martin Zobel-Helas a écrit :
> root@kvasir:/home/zobel# /etc/init.d/apache2 foobar
> [ ok ] Usage: /etc/init.d/apache2 {start|stop|graceful-stop|restart|reload|force-reload|start-htcacheclean|stop-htcacheclean|status}.
> root@kvasir:/home/zobel#
>
> it that [ ok ] there really the right output, when using the wrong option for apache2?
Fair question I admit.
Although, after examination of /etc/init.d/apache2, it appears that it
uses the log_success_msg function that is not supposed to be used in
Debian initscripts (that's documented in /u/s/d/lsb-base/README.Debian).
As this function is supposed to log a successful action, it produces an
[ ok ].
/e/i.d/apache2 could use log_warning_msg that would produce a [warn] or
log_failure_msg that would produce a [FAIL], although I would recommend
using log_action_msg that will get a cyan [info] (soon, not uploaded yet).
Cheers,
OdyX
signature.asc
(application/pgp-signature, 663 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (MingW32) iQGcBAEBAgAGBQJPhsCGAAoJEIvPpx7KFjRVxIoL/R/dTnzAbTMSHLgPEtXhZG3R lSlvvif/XRuKsYJbEsB7hGqOJzChFW1ojERiiW0YT7Tc5ipLOZoK1Lf8nI+ZN9+P tOO3rGBeFo5p1lOk+pKJ/WB+NHX+YO+2yid0Bviv8l7CDuipPGeTsAVrHC1EMebF xec0MOHdAh3PTkod5Z8jVndhJsMqmbUdUv8dx77RL610HbB4DjscwvN+oG/rGG66 u10NWWFTVnYShWkNQ3uYdEz8CG0rz6DImhv1Rai0a3U59LoIETqeLneQWCN+UZ6Y VLLx9YRa4c1SN7dh4atpfPiwbCiOaCqCxXIv2GdN9YvHH9zFIvH5Xx6byxs0OJ3i 6oOLvYfN7GMRvCgaWVc7I+/dlsjZgIAdABNFHhreNZxPb8daooMuBEogdnrZI0fi B6dC9emZw8quh0uDUQvalxuGgqk16+MUIVA2ltpLMSv1+ODgBgqqKzYXivQmCZXf OwRTvuXK1HpQgd+i7mIR8kxocduVEQv87IgK1MITTw== =Ne3o -----END PGP SIGNATURE-----