Create custom service in Windows 7

5

How do you run a custom service in Windows 7?
Does anyone know how to setup trac as a custom service in Windows 7?

Thomas

Posted 2009-09-28T07:51:20.353

Reputation:

Answers

11

The link you have provided also points towards Trac On Windows [link is now bad], which seems a pretty complete description of the installation process.

In section 3 I find the following line:

sc create svnserver binpath="C:\Subversion\bin\svnserve.exe --service -r c:\svnrepositories" displayname= "Subversion Server (svnserver)" depend= Tcpip start= auto

which creates a system service. However, I don't know if that's the service you need.

harrymc

Posted 2009-09-28T07:51:20.353

Reputation: 306 093

1

yep srvany seems to be only way - unless someone else knows another way using

"sc create /?" in cmd prompt (i dont)

Andy

Posted 2009-09-28T07:51:20.353

Reputation:

i think the service being request is "Running Tracd as service" - not sure how to run this as a service on windows 7 – None – 2009-09-28T08:05:37.783

1

If you're scared by the command line and not scared to spend money, then FireDaemon allows you to easily set up services.

seanyboy

Posted 2009-09-28T07:51:20.353

Reputation: 1 568

0

Take a look at SrvAny from the Windows NT Resource Kit.

fretje

Posted 2009-09-28T07:51:20.353

Reputation: 10 524