WebApp as service application

I am trying to apply what is described at http://documentation.xojo.com/index.php/ServiceApplication to install a standalone web app as a service.

I ran the command prompt as administrator and typed

sc create RSWebSvc type= own start= auto binpath= c:\\Users\\Mitch\\Desktop\\wb\\wb.exe

The path is the path to the built executable.

I get service created successful but yet I do not find my service in the task manager, and apparently the web app is not accessible through the browser. What am I missing ?

You’ve created the service, but haven’t started it yet.

sc start RSWebSvc

will get it going for you.

[quote=167485:@Wayne Golding]You’ve created the service, but haven’t started it yet.

sc start RSWebSvc

will get it going for you.[/quote]

That’s what I was missing ! Thank you Wayne :slight_smile:

I filed a feature request for the LR to be completed.
<https://xojo.com/issue/38182>

Michel,

You’ll also find quite a bit of help for the sc command by executing sc /? from the Windows command prompt.

[quote=168257:@Robert Boice]Michel,

You’ll also find quite a bit of help for the sc command by executing sc /? from the Windows command prompt.[/quote]

Thanks.

This is how I do it (‘CollectIT’ is the service name):

tempShell.Execute "sc create CollectIT binpath= " + chr(34) + f.NativePath + chr(34) + " start= auto" tempShell.Execute "sc Failure CollectIT actions= restart/2000/restart/2000// reset= 120" tempShell.Execute "sc start CollectIT"
To stop:

   tempShell.Execute "sc stop CollectIT"

To delete:

   tempShell.Execute "sc delete CollectIT"