gharris999;407285 Wrote: > But, as far as I can tell, pm-suspend and pm-hibernate don't take an > optional "reason" parameter, so I don't currently know how to put a > message into /var/log/messages on suspend or hibernate.
If you set pm-utils for debug, it won't log to syslog. There is a specific trace file in /var/log. Perhaps it is intended that syslog can be one of the services stopped before suspend ?? Outside of debug mode, I don't believe pm-utils write anything. One thing I know: I use syslog when I commit my server to sleep. Upon sleep, the very last steps of the trace are not actually written to the log. They are, with the correct date and all, upon wake-up. I suspect the kernel locks IOs when sleeping the devices, or the processing delay within syslog itself is too high. So I suggest writing an info message before launching sleep if this is needed. I guess this is already done when srvPowerControl is set for debug logging. I believe the "logger" command provides a standard (here I've got it on debian linux & macs) and easy way to write to syslog, if you want to add trace to a wrapper script. -- epoch1970 ------------------------------------------------------------------------ epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711 View this thread: http://forums.slimdevices.com/showthread.php?t=48521 _______________________________________________ plugins mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/plugins
