Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

Rebooting PC on a schedule

Other discussion about creating web sites for Cumulus that doesn't have a specific subforum

Moderator: daj

Post Reply
Spencer
Posts: 5
Joined: Thu 06 Sep 2012 8:41 pm
Weather Station: WS3083
Operating System: Windows 7
Location: Wellington

Rebooting PC on a schedule

Post by Spencer »

I am running Cumulus and a website using IIS on an old laptop running XP. Works a treat but.......
The laptop needs a reboot frequently so I am scheduling it automatically each night.
My problem:
When the laptop reboots using restart.exe (using scheduled tasks) cumulus does not appear to shut down nicely. (I do not get the cumulus is shutting down message)
I have looked at using taskkill.exe but it still seems to shutdown cumulus without doing that nice shutdown.
Is anyone aware of a nice way of shutting down cumulus via a command line so I am to schedule this using a batch file.

Thanks in anticipation
If first you don't succeed skydiving is not for you
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Rebooting PC on a schedule

Post by steve »

I've just tried

taskkill /im cumulus.exe

and I got the 'Cumulus is closing' window. The diags file shows a clean shutdown:

13/11/2012 08:44:31.434 : MainForm can close
13/11/2012 08:44:31.434 : Showing splash screen
13/11/2012 08:44:31.690 : Exit FormCloseQuery
13/11/2012 08:44:31.690 : MainForm.FormClose
13/11/2012 08:44:31.690 : Terminating threads...
13/11/2012 08:44:31.690 : Threads terminated
13/11/2012 08:44:31.690 : Cumulus closing
13/11/2012 08:44:31.744 : Writing cumulus.ini file
13/11/2012 08:44:31.759 : Terminating ftp thread...
13/11/2012 08:44:31.759 : FTP thread terminated

You haven't got 'confirm close' set, perhaps? Another possibility is that if it's busy doing ftp or something, it may take some time to close down, and the system may go ahead and restart anyway. You may need to put a delay in after the taskkill. I'd still expect you to see the 'closing' window, though.
Steve
Post Reply