]> git.puffer.fish Git - matthieu/frr.git/commit
Quagga: Display useful info when doing service quagga status
authorvivek <vivek@cumulusnetworks.com>
Wed, 21 Oct 2015 05:09:58 +0000 (22:09 -0700)
committervivek <vivek@cumulusnetworks.com>
Wed, 21 Oct 2015 05:09:58 +0000 (22:09 -0700)
commit0905eabe10e87893924ba33564e9f9fdf3e4bdca
tree84ba3849d8042eded58ba39dcfd39bdecfaad55c
parent085567f9553966f0042cd2f7cda0551a84f63b2f
Quagga: Display useful info when doing service quagga status

Ticket: CM-7132
Reviewed By: CCR-3461
Testing Done: the usual

Today, 'service quagga status' merely sets the return code and nothing
more. Like other services, it'd be good to print some useful output as
well.

Example output:
    cumulus@top1$ sudo service quagga status ospfd
    [ ok ] ospfd-1 is running.
    [ ok ] ospfd-2 is running.
    cumulus@top1$ sudo service quagga status
    [ ok ] zebra is running.
    [ ok ] ospfd-1 is running.
    [ ok ] ospfd-2 is running.
    [ ok ] ospf6d is running.
    cumulus@top1$ sudo service quagga status
    [ ok ] zebra is running.
    [ ok ] ospfd-1 is running.
    [FAIL] ospfd-2 is not running ... failed!
    [ ok ] ospf6d is running.
    cumulus@top1$ echo $?
    1
    cumulus@top1$

Signed-off-by: Dinesh G Dutt <ddutt@cumulusnetworks.com>
Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com>
debian/quagga.init.d