`service smartmontools status` broken on 10.04, smartmontools 5.38-3ubuntu3 (always replies "* is not running")

Bug #1403681 reported by Dan Beam
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
smartmontools (Ubuntu)
Undecided
Unassigned

Bug Description

Package: smartmontools 5.38-3ubuntu3
Affected Ubuntu Versions: 10.04 (still in use there, supported until 4/17 as it's LTS)
Defect: looks like smartmontools is never running

Without the patch:

  $ sudo service smartmontools status
   * is not running

Notice the missing daemon name ("smartd"). This is because /etc/init.d/smartmontools is passing undefined variables ($SMARTDPID, $SMARTD), to `status_of_proc` in /lsb/lsb/init-functions.

With the patch:

  $ sudo service smartmontools status
   * smartd is running

Fixing patch attached.

I believe this has been fixed in smartmontools' 5.39 branch[1] and trunk[2]

[1] http://svn.code.sf.net/p/smartmontools/code/branches/RELEASE_5_39_BRANCH/smartmontools/smartd.initd.in
[2] http://svn.code.sf.net/p/smartmontools/code/trunk/smartmontools/smartd.initd.in

Revision history for this message
Dan Beam (dsbeam) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "patching wrong file, but really simple to apply to this package (couldn't find correct location)" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers