Start a new topic

Incorrect exit code on init script when service is stopped

freexe @ Thu Feb 20 09:27:00 EET 2014
Hi,

When running "crushftp_init.sh status" it echos "Stopped" then exits with a 0.

This is the incorrect behaviour and it should exit 3 when the service is stopped.

This affects the ability of puppet to ensure the service is running.

http://refspecs.linuxbase.org/LSB_3.1.0/LSB-Core-generic/LSB-Core-generic/iniscrptact.html

Cheers,
Richard

spinkb @ Thu Feb 20 09:36:01 EET 2014
The script in v7 has now been updated.

Thanks,
Ben
freexe @ Thu Feb 20 09:51:13 EET 2014
Thanks for the quick fix!

Login to post a comment