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

Bug#604855: unblock: shibboleth-sp2/2.3.1+dfsg-3

On 25.11.2010 13:13, Teodor MICU wrote:
> I see at least two possible implementations:
> 1) use the 'status_of_proc' LSB function (there are many init scripts
> doing this for the status command);
> 2) check if there is any Apache process running:
>   # pidof apache2 > /dev/null && invoke-rc.d apache2 restart

the apache init script already has a status method, why don't you use

invoke-rc.d apache2 status >/dev/null 2>&1 && invoke-rc.d apache2 restart

(and possibly ignoring any errors by appending || true)

pidof has the downside that it will check for all processes named apache2.
This means you don't necessarily get the correct result.

Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

Attachment: signature.asc
Description: OpenPGP digital signature

Reply to: