Raj
Raj

Reputation: 837

Creating a service in windows

I want to create a windows service to run an exe on start up. Actually i am using mongodb. Every time i need to start the mongod.exe at first to perform all operations.

Please give some suggestions to create a service to start this exe on start up.

Upvotes: 0

Views: 219

Answers (3)

Raj
Raj

Reputation: 837

I got answer from this link.

Its working fine.

http://docs.mongodb.org/manual/tutorial/install-mongodb-on-windows/#mongodb-as-a-windows-service

Upvotes: 0

CoreTech
CoreTech

Reputation: 2433

MongoDB already runs as a service. Why aren't you installing it the usual way?

Upvotes: 0

sb9
sb9

Reputation: 1082

A Windows service needs to communicate with Windows' service control manager. I guess that mongodb does not support this out of the box. So you either need to create a small service framework that starts mongodb or you can use something like srvany.exe (http://support.microsoft.com/kb/137890/en-us/).

Service Installation can be done with SC.EXE

Upvotes: 1

Related Questions