2011/9/2 Dmitriy Altuhov d...@altuhov.su
Public bug reported:
Ubuntu 11.04
NUT 2.6.0
System shutting down (battery low, FSD set) and executes /etc/init.d
/ups-monitor poweroff
ups-monitor script contains section poweroff. in this section we can
see log_daemon_msg which sends info to syslog
but rsyslogd already stopped.
This is in syslog when shutdown:
Sep 2 17:37:58 gwlin upsmon[1229]: Signal 10: User requested FSD
Sep 2 17:37:58 gwlin upsd[1225]: Client local_mon@127.0.0.1 set FSD on
UPS [ippon]
Sep 2 17:37:58 gwlin upsmon[1229]: Executing automatic power-fail shutdown
Sep 2 17:37:58 gwlin upsmon[1229]: Auto logout and shutdown proceeding
Sep 2 17:38:03 gwlin kernel: Kernel logging (proc) stopped.
Sep 2 17:38:03 gwlin rsyslogd: [origin software=rsyslogd
swVersion=4.6.4 x-pid=374 x-info=http://www.rsyslog.com;] exiting on
signal 15.
I'm not sure if this can be considered as a bug (not that it's a feature!).
log_*_msg are not only used to log in the syslog (when available), but also
to display info on the console...
by the time we reach the end of the shutdown process, FS are remounted
read-only.
so even if syslogd was still active, it would not be able to log in the FS
syslog file!
cheers,
Arnaud
--
Linux / Unix Expert RD - Eaton - http://powerquality.eaton.com
Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org/
Debian Developer - http://www.debian.org
Free Software Developer - http://arnaud.quette.free.fr/
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to nut in Ubuntu.
https://bugs.launchpad.net/bugs/839509
Title:
nut can not log to syslog when shutdown
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nut/+bug/839509/+subscriptions
--
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at:
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs