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

Re: init script output



also sprach Yaroslav Halchenko <debian@onerussian.com> [2006.11.16.1717 +0100]:
> 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.
> 
> which I actually consider a bad practice at least since it just
> spits out stderr output from apache2ctl without wrapping it with
> lsb_*_msg functions

I would, of course, prefer a solution with the lsb functions. What
I want is to know when fail2ban started and when I accidentally
tried to start it while the daemon was already running.

-- 
Please do not send copies of list mail to me; I read the list!
 
 .''`.   martin f. krafft <madduck@debian.org>
: :'  :  proud Debian developer, author, administrator, and user
`. `'`   http://people.debian.org/~madduck - http://debiansystem.info
  `-  Debian - when you have better things to do than fixing systems
 
"if one cannot enjoy reading a book over and over again,
 there is no use in reading it at all."
                                                        -- oscar wilde

Attachment: signature.asc
Description: Digital signature (GPG/PGP)


Reply to: