Solved

Program as a Service

Posted on 2014-01-21
2
315 Views
Last Modified: 2014-01-23
Hi,

I have a server 2012 box and im trying to run a Program as a service.

Can somebody give me a hand on this.

Thanks

RM
0
Comment
Question by:RODRIGOMORCAL
2 Comments
 
LVL 82

Accepted Solution

by:
oBdA earned 250 total points
Comment Utility
To run a program as a service that was not developed as a service, you need a wrapper that presents itself as a service and runs the program.
For W2k3, there was SrvAny.exe in the Resource Kit (http://www.microsoft.com/en-us/download/details.aspx?id=17657); it might still work on W2k12 (though only in 32bit), but the better solution is the "Non-Sucking Service Manager" from http://nssm.cc/ (32bit and 64bit version).
Download it and follow the instructions to let your program run as a service.
0
 
LVL 28

Assisted Solution

by:becraig
becraig earned 250 total points
Comment Utility
sc create YourServiceName binPath= "c:\Program Files\directory\appname.exe"


You can then use sc to set startup type etc.

Reprinted from:
http://www.msfn.org/board/topic/83272-how-to-run-a-program-as-a-service/

also more info at:
http://technet.microsoft.com/en-us/library/bb490995.aspx
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

This is an article about Leadership and accepting and adapting to new challenges. It focuses mostly on upgrading to Windows 10.
If you get continual lockouts after changing your Active Directory password, there are several possible reasons.  Two of the most common are using other devices to access your email and stored passwords in the credential manager of windows.
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now