I had problems with the freeipmi-bmc-watchdog. 1) The configuration file in /etc/default was incorrectly named. The init script in /etc/init.d/ looks for a file named 'freeipmi-bmc- watchdog' but the installed configuration file is named 'bmc-watchdog'. This can be fixed either by symbolically linking the /etc/default /freeipmi-bmc-watchdog file to /etc/default/bmc-watchdog or by renaming the file to 'bmc-watchdog'. Since the daemon binary is '/usr/sbin/bmc- watchdog' I chose the latter.
2) The script in /etc/logrotate.d is incorrect. There is no 'condrestart' option to the bmc-watchdog script. 3) The /etc/init.d/bmc-watchdog script has other bugs. '/etc/init.d/bmc- watchdog restart' stops the daemon but does not restart it. Robert's modified script fixes this. Another way to fix this is to start bmc- watchdog via upstart. Attached is an init file I wrote for bmc-watchdog, bmc-watchdog.conf. Install the file in /etc/init, remove '/etc/init.d /bmc-watchdog' and then link '/etc/init.d/bmc-watchdog' to '/lib/init /upstart-job'. I've tested the script with start, stop, reload and restart commands and have also tested it by killing a running bmc- watchdog daemon and making sure that upstart respawns it. ** Attachment added: "Upstart init file for bmc-watchdog daemon from freeipmi package." https://bugs.launchpad.net/ubuntu/+source/freeipmi/+bug/594827/+attachment/1855463/+files/bmc-watchdog.conf -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/594827 Title: broken bmc-watchdog init script/logrotate config -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
