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

how to know if start, restart is successful?

Hello !!
I'd need to know if
/etc/init.d/* start/restart or stop
is successful or not..

I've done that
if /etc/init.d/apache2 start;then
echo yes
echo no

But it returns yes even it can not be started...is there any way to
know if restarting daemons is successful?

thanks very much.


Reply to: