2009/8/23 <mclu...@wp.pl>: > Unfortunately autoshutdown function doesn't fit my needs. It doesn't > support natively shutting down at specific time but after xx minutes of > idle time (without checking remote connections). > I made some investigation to find, that it is possible to call my bash > script from inside autoshutdown.py to prevent box from being shut down > until my conditions are met. > Thanks for reply. > Maciej > > > >
I have a similar requirement where I want my Freevo system to remain up throughout the day but to to have it shutdown after midnight. I picked an innocuous task (e.g., klipper) and added it to my AUTOSHUTDOWN_PROCESS_LIST so that, whenever it is running, autoshutdown will not take effect. I created a simple script that is called by OSD_SDL_EXEC_AFTER_STARTUP which launches the innocuous task at Freevo startup if the time-of-day is between 06:00 and 24:00. I have a second script that is invoked by crontab at midnight; this script kills the innocuous process so that the autoshutdown function is free to shutdown the system as defined in my autoshutdown configuration. I have AUTOSHUTDOWN_TIMER_TIMEOUT set to 5 minutes, so the system shuts down at 00:05. If a scheduled recording starts up the system in the middle of the night, the system will shutdown automatically 5 minutes after the end of the recording since the innocuous task is not launched by OSD_SDL_EXEC_AFTER_STARTUP at night. I also have AUTOSHUTDOWN_DEFAULT_WAKEUP set to 08:30 so that my Freevo system always starts in the morning and it will remain up throughout the day and evening (since the innocuous process is running). Art S R ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Freevo-users mailing list Freevo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-users