954,255 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Service not working after boot - until service restarted

I've created a service using srvany which starts a little prog I wrote to monitor for a "switch user" condition and then on recognising one, kicks off a batch file which starts an ftp synchronisation.

The service is set to autostart and I've added Spooler as a dependency.

The problem is that after a reboot, although the service shows running, nothing happens when I switch user. If I stop and start the service, then switch user (the trigger) - everything works perfectly - and continues to work perfectly until the PC is rebooted again.

I can't understand why it's necessary to stop/start the service after a reboot.

Any ideas/suggestions gratefully received!

Cheers

MrBuckingham
Newbie Poster
2 posts since Jan 2009
Reputation Points: 10
Solved Threads: 0
 

Just a guess. Does it work if you switch the service's Startup Type to 'Manual' ?

Laser
Posting Whiz
358 posts since Sep 2004
Reputation Points: 98
Solved Threads: 45
 

Thanks for your suggestion. It would work if I manually started the service (as it does when I restart it) but I really need this to kick in automatically - and there's no other trigger to start the service.

MrBuckingham
Newbie Poster
2 posts since Jan 2009
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You