Change in ovirt-engine[master]: packaging: Use standard SystemV status codes (#842641)

oschreib at redhat.com oschreib at redhat.com
Wed Jul 25 10:09:48 UTC 2012


Ofer Schreiber has submitted this change and it was merged.

Change subject: packaging: Use standard SystemV status codes (#842641)
......................................................................


packaging: Use standard SystemV status codes (#842641)

https://bugzilla.redhat.com/842641

This patch changes the start/stop script so that the "status"
action returns the standard SystemV exit codes:

0: program is running or service is OK
1: program is dead and /var/run pid file exists
2: program is dead and /var/lock lock file exists
3: program is not running
4: program or service status is unknown
5-99: reserved for future LSB use
100-149: reserved for distribution use
150-199: reserved for application use
200-254: reserved

Note that the script uses only 0, 1, 3 and 4, as the others are
not applicable at the moment.

Change-Id: I124107a00dc3e0c7d922a7e34840bb2f069028d2
Signed-off-by: Juan Hernandez <juan.hernandez at redhat.com>
---
M packaging/fedora/engine-service.py
1 file changed, 43 insertions(+), 29 deletions(-)

Approvals:
  Juan Hernandez: Verified
  Ofer Schreiber: Looks good to me, approved


--
To view, visit http://gerrit.ovirt.org/6571
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I124107a00dc3e0c7d922a7e34840bb2f069028d2
Gerrit-PatchSet: 4
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: Ofer Schreiber <oschreib at redhat.com>



More information about the Engine-commits mailing list