From e1e5451f976d92fa5263392491dafa289ed3d7cc Mon Sep 17 00:00:00 2001 From: Stephen Fromm Date: Wed, 6 Mar 2013 10:18:34 -0800 Subject: [PATCH] Consider service stopped if rc is 1 Per LSB spec, consider service stopped if rc from 'service status' is 1. Added comment with url to LSB spec reference. --- service | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/service b/service index 9d6432b0d3d..3209fd4fe99 100644 --- a/service +++ b/service @@ -414,8 +414,10 @@ class LinuxService(Service): self.running = True # if the job status is still not known check it by response code + # For reference, see: + # http://refspecs.linuxbase.org/LSB_4.1.0/LSB-Core-generic/LSB-Core-generic/iniscrptact.html if self.running is None: - if rc in [2, 3, 4, 69]: + if rc in [1, 2, 3, 4, 69]: self.running = False elif rc == 0: self.running = True