Sign in to follow this  
Followers 0
jbreetz

Script as a Service

3 posts in this topic

I'm having trouble getting my script to run as a service. I followed the tips found in the FAQ. I didn't use the autoit script to create the service as I already was using the "sc" command to create it. I made sure that the service could interact with the desktop. When the service manager starts the script, I can see it in the systray, but since it doesn't send back a confirmation or something, service manager never thinks that it starts properly so it kills it and reports an error.

How can I get the script to interact with the service manager so that it doesn't terminate the script?

Thanks.


JB

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

sc.exe will start...stop valid service excutables...but what you need is a wrapper to make your executable work with the service controller so that is where SrvAny.exe and InnSrv are for. Search and you will find them.

:whistle:

Edited by MHz

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0