Lacks a status action in the init script

Bug #806145 reported by Jacob Smith
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
arpwatch (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Arpwatch is not LSB compliant since it lacks a status action in its' init script.

1) Description: Ubuntu 10.04.2 LTS
    Release: 10.04

2) Installed: 2.1a15-1.1
    Candidate: 2.1a15-1.1
    Version table:
    *** 2.1a15-1.1 0
          500 http://us.archive.ubuntu.com/ubuntu/ lucid/universe Packages
          100 /var/lib/dpkg/status

3) Expect output from "$/etc/init.d/arpwatch status" or "$service arpwatch status" such as "Arpwatch is running (pid XXXX)"

4) If you pass the "status" parameter to the init script you get the usage output.

Tags: patch
Revision history for this message
Jacob Smith (jsmith-argotecinc) wrote :

Patch to implement status_of_proc() LSB init Function.

Everything works as defined in LSB standard with the exception of the return code of status when daemon is not running. It is reported incorrectly as 0 instead of 3. I believe this is because of a bug in /lib/lsb/init-functions in the pidofproc() section. I will post a bug there shortly.

Changed in arpwatch (Ubuntu):
status: New → Confirmed
Revision history for this message
Jacob Smith (jsmith-argotecinc) wrote :

Maybe someone else could take a look at the return code issue.

I looked through the init script for NTP and how it calls status_of_proc and mine is identical. However if ntp is not running and you execute /etc/init.d/ntp status; echo "return $?" you get return 3 which is the proper response per LSB standard. But if you execute the same with my patched script - /etc/init.d/arpwatch status; echo "return $?" you get return 0...
Not sure what I'm missing.

tags: added: patch
Revision history for this message
Jacob Smith (jsmith-argotecinc) wrote :

Have an updated patch that returns properly when Arpwatch isn't running. Will upload soon

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.