Solved

Program as a Service

Posted on 2014-01-21
2
326 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 84

Accepted Solution

by:
oBdA earned 250 total points
ID: 39798367
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 29

Assisted Solution

by:becraig
becraig earned 250 total points
ID: 39798377
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Dual boot help 2 34
Create document for email to smartphones with macOS pages 3 29
.JSD files... 2 34
Windows 2016 Server and Updates 5 44
I was prompted to write this article after the recent World-Wide Ransomware outbreak. For years now, System Administrators around the world have used the excuse of "Waiting a Bit" before applying Security Patch Updates. This type of reasoning to me …
An introduction to the wonderful sport of Scam Baiting.  Learn how to help fight scammers by beating them at their own game. This great pass time helps the world, while providing an endless source of entertainment. Enjoy!
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …

751 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