Author: dmeyer
Date: Wed Feb  1 17:46:06 2006
New Revision: 7906

Modified:
   trunk/apps/bin/freevo-autoshutdown

Log:
check if wakeup command is set

Modified: trunk/apps/bin/freevo-autoshutdown
==============================================================================
--- trunk/apps/bin/freevo-autoshutdown  (original)
+++ trunk/apps/bin/freevo-autoshutdown  Wed Feb  1 17:46:06 2006
@@ -235,10 +235,12 @@
         # check wakeuptime for changes
         if wakeuptime != self.wakeuptime:
             # there is a new wakeup time
-            log.info('Set wakeup time: %s' % wakeuptime)
             self.wakeuptime = wakeuptime
-            kaa.notifier.Process(config.wakeup_command % wakeuptime).start()
-
+            if config.wakeup_command:
+                log.info('Set wakeup time: %s' % wakeuptime)
+                kaa.notifier.Process(config.wakeup_command % 
wakeuptime).start()
+            else:
+                log.error('wakeup_command not set')
         # check idletime
         if idletime < config.freevo_idletime:
             log.info('Entity idletime is %s, continue' % idletime)


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to