0

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.

2
  • please post what you have tried so far,so you may get soon response from community Commented Dec 14, 2012 at 11:03
  • I tried editing in registry setting in services. The service is getting added in the services list.But its giving error like not able to start. error :1053 Commented Dec 14, 2012 at 11:17

3 Answers 3

1

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

Sign up to request clarification or add additional context in comments.

Comments

0

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

Comments

0

I got answer from this link.

Its working fine.

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.