sm-notify leaves pid file on failure
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nfs-utils (Ubuntu) |
Triaged
|
Medium
|
Unassigned |
Bug Description
This bug exists in the nfs-utils package for Lucid, Maverick and Natty (didn't check earlier).
sm-notify writes a pid file on startup (/var/run/
However, if sm-notify fails, this pid file is left around, even though no hosts have been notified. On subsequent sm-notify runs, sm-notify will see the pid file and then exit immediately, mistakenly believing that it has already notified hosts this boot.
This is problematic because sm-notify is started by the init script for statd and will sometimes fail; subsequent startups (e.g. due to other statd start events) will then claim to succeed (due to the pid file), but not actually send any notifications. This results in stale nfs locks.
In particular, this exacerbates problems relating to https:/
Changed in nfs-utils (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → Medium |