Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 195125 - sys-power/nut inconsistent pidfile locations in init script
Summary: sys-power/nut inconsistent pidfile locations in init script
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-08 16:29 UTC by Whit Blauvelt
Modified: 2007-10-09 00:48 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Whit Blauvelt 2007-10-08 16:29:52 UTC
In nut-nut-2.0.5-r2 the script has at line 18:

rm -f /var/state/nut/upsd.pid

Yet at lines 26 & 32:

--pidfile /var/lib/nut/upsd.pid

So "state" appears to be an error in that first line.

Also, /var/lib/nut can end up with pid files specific to the driver, for instance on my system:

/var/lib/nut # ls -l
total 8
-rw-r--r-- 1 nut nut 6 Oct  8 12:14 cyberpower-ups.pid
srw-rw---- 1 nut nut 0 Oct  8 12:14 ups
-rw-r--r-- 1 nut nut 6 Oct  8 12:14 upsd.pid

So might the proper fix be for line 18 to read:

rm -f /var/lib/nut/*.pid

?


Reproducible: Always
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2007-10-09 00:48:52 UTC
fixed in cvs.