broken bmc-watchdog init script/logrotate config
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
freeipmi (Debian) |
Fix Released
|
Undecided
|
Unassigned | ||
freeipmi (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Description: Ubuntu 10.04 LTS
Release: 10.04
freeipmi-
Installed: 0.7.15-2
Candidate: 0.7.15-2
Version table:
*** 0.7.15-2 0
500 http://
100 /var/lib/
The init scripts provided with the package above are not LSB compliant and fail to properly startup/shutdown the daemon in various ways. During testing, in some cases the old script completely refused to start the daemon even after a cold boot. The old script was not PID aware and was not using PIDFILEs. In some cases, the daemon would be shutdown but not properly, causing eventual unexpected hard resets etc...
The logrotate configuration has an invalid path for the restart script and even then executes it with an unsupported condrestart.
Please find attached a rewritten init script based on Ubuntu 10.04 /etc/init.
All code paths in this init work properly for me and it has none of the cludges in the old init script.
Please also find attached a diff for the logwatch config.
Both files are in a tar because it seems attaching two files to this bug report isn't an option.
tags: | added: patch |
Changed in freeipmi (Ubuntu): | |
status: | Incomplete → Fix Released |
Unlike the reporter, had not that many problems with this package once the following scriplet was run on the system :
# cd /etc/init.d && ln -s bmc-watchdog freeipmi- bmc-watchdog bmc-watchdog bmc-watchdog restart/ g" freeipmi- bmc-watchdog
# cd /etc/default && ln -s freeipmi-
# cd /etc/logrotate.d && perl -pi -e "s/condrestart/
packages in debian unstable (0.7.17~beta2-1) and experimental (0.8.12-1) are not fully fixed either though and seems upstream (1.0.1) init script has dropped support for debian/ubuntu and so none of them are possible long term solutions