After a power outage 1 program in startup folder did not start

mpooley

New member
Member
Local time
8:24 PM
Messages
49
After a power outage the only program in the startup folder on my home server did not start but when i looked at task manager it's process was running?

to be clear in Task manager it was not showing as a running application but program.exe was showing in the processes tab. It was obviously not working properly though as a window to it should have opened.

The program is a Homemade central heating controller written by me and has been running fine on my Home server for over 2 years 24/7 and has recovered from many many power outages in that time.


This is the first time this has ever happened.

The outage was for a few seconds only and my main computer (not the server) which was also running at the time would not restart properly at all and I had to do a system restore to get it to work.

I am going on holiday soon leaving some friends in my house and it would be a major problem if this happened again while I was away.

I can't see that this outage could be different from any other. could it?
a reboot is a reboot surely?

I rebooted manually and all was well so god knows why this time it was different.

should I get a UPS do you think ? if so anyone got a suggestion for a good one.
My server only uses 28w and most of our power cuts are short lived.

any suggestions are appreciated

thanks

Mike
 

My Computer My Computer

At a glance

Windows 7 Ultimate x642.67 gigahertz Intel Core2 Quad Q94508gbnvidia 8800gt
OS
Windows 7 Ultimate x64
CPU
2.67 gigahertz Intel Core2 Quad Q9450
Motherboard
Gigabyte Technology Co., Ltd. EP35C-DS3R
Memory
8gb
Graphics Card(s)
nvidia 8800gt
Monitor(s) Displays
sony bravia 46
Screen Resolution
1900x1200
Hard Drives
1tb sanyo
WDC WD2500KS-00MJB0 ATA (250.06 GB)
Corsair CSSD-F60GB2 [Hard drive] (60.02 GB)
Internet Speed
very slow
sure, a UPS is a good idea... but picking one can be fun - see this link.

you could write a tool that watches for the other software's window and if it does not see it after some preset amount of time, it tries to restart that app --- if that fails, it restarts the computer.

assuming that the server has a connection to the internet, TeamViewer might let you remotely view/control/reboot it from a smartphone.
 

My Computer My Computer

At a glance

W7 Pro SP1 64biti78GBIntel HD Graphics
Computer type
Laptop
Computer Manufacturer/Model Number
Employer provided Dell Latitude
OS
W7 Pro SP1 64bit
CPU
i7
Memory
8GB
Graphics Card(s)
Intel HD Graphics
Hard Drives
crappy SSD
Antivirus
Employer mandated Symantec Endpoint Protection
Browser
Pale Moon 64bit, IE11 64bit & Chrome 64bit
sure, a UPS is a good idea... but picking one can be fun - see this link.

you could write a tool that watches for the other software's window and if it does not see it after some preset amount of time, it tries to restart that app --- if that fails, it restarts the computer.

assuming that the server has a connection to the internet, TeamViewer might let you remotely view/control/reboot it from a smartphone.

Hey that's not a bad idea !
I could easily write an app to do that ! why didn't i think of that :confused:

ah just had a thought though, the checking app might not start either :(

I do use Teamviewer though so that's something to think about. I could log on to my server from the Caribbean :D

thanks :)

Mike
 

My Computer My Computer

At a glance

Windows 7 Ultimate x642.67 gigahertz Intel Core2 Quad Q94508gbnvidia 8800gt
OS
Windows 7 Ultimate x64
CPU
2.67 gigahertz Intel Core2 Quad Q9450
Motherboard
Gigabyte Technology Co., Ltd. EP35C-DS3R
Memory
8gb
Graphics Card(s)
nvidia 8800gt
Monitor(s) Displays
sony bravia 46
Screen Resolution
1900x1200
Hard Drives
1tb sanyo
WDC WD2500KS-00MJB0 ATA (250.06 GB)
Corsair CSSD-F60GB2 [Hard drive] (60.02 GB)
Internet Speed
very slow
If the second "watcher app" has no visible windows, it can do it's thing without hanging up on some GUI creation process. If you know how, you can have the "watcher app" run as a service.

I'm no programmer and I only know a little bit about a few programing languages. I do most of my stuff in a scripting language named AutoIt. And most of my stuff has no visible windows. See this post and its videos for more info. AutoIt (or other programming tools) can be used to send you an e-mail if things barf.

I have written stuff where the main program watches for and tries to start or re-start the "watcher app". And the "watcher app" watches for and tries to start or re-start the main program. Between the two of them - they both stay running.

I don't know what could have caused your app to not start all of the way - but as important as that app is, I would set the server's BOIS to have the computer turn on when power is restored and set it to power up the computer each day at a certain time - just in case. (assuming that the BIOS has such settings). And I would go as far as writing/running two watcher apps - each checking in a different way that the main app is running and each app keeping tabs on the other 2.

...but that is just me...
 

My Computer My Computer

At a glance

W7 Pro SP1 64biti78GBIntel HD Graphics
Computer type
Laptop
Computer Manufacturer/Model Number
Employer provided Dell Latitude
OS
W7 Pro SP1 64bit
CPU
i7
Memory
8GB
Graphics Card(s)
Intel HD Graphics
Hard Drives
crappy SSD
Antivirus
Employer mandated Symantec Endpoint Protection
Browser
Pale Moon 64bit, IE11 64bit & Chrome 64bit
No that sounds very sensible to me.

I am just googling how to make a 'service' in .net to see how hard it is ;)

thanks
 

My Computer My Computer

At a glance

Windows 7 Ultimate x642.67 gigahertz Intel Core2 Quad Q94508gbnvidia 8800gt
OS
Windows 7 Ultimate x64
CPU
2.67 gigahertz Intel Core2 Quad Q9450
Motherboard
Gigabyte Technology Co., Ltd. EP35C-DS3R
Memory
8gb
Graphics Card(s)
nvidia 8800gt
Monitor(s) Displays
sony bravia 46
Screen Resolution
1900x1200
Hard Drives
1tb sanyo
WDC WD2500KS-00MJB0 ATA (250.06 GB)
Corsair CSSD-F60GB2 [Hard drive] (60.02 GB)
Internet Speed
very slow
Back
Top