From 6e35392f9225a30ebcf907febf1579fce8b2423f 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. --- library/service | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/library/service b/library/service index 9d6432b0d3..3209fd4fe9 100644 --- a/library/service +++ b/library/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