lsb status return value

Bug #399634 reported by kali
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
runit (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: runit

distro: 9.04
runit version: 2.0.0
package version: probably all of them as the bug is in runit code (runit_2.0.0-1ubuntu2 for sure)

The /etc/init.d/<service> status command for runsv services having "log" scripts always returns 0, evec if the status is down.

In sv.c, function "status". The service status is checked and stored in a variable called r. Then the function checks the logger status, before choosing the return value based on what is in "r". But 'r' is global and is altered by the logger status checking.

Patching making r a local variable in the status command solves this issue, hopefully without side effect. I have not checked for possible other occurencies of this problem neither in sv.c nor in the rest of runit source code.

Issue has been notified and discussed in runit supervision mailing-list.

Changed in runit (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.