[sdw2003] How to create a service on a windows 2003
Ryan Blakeslee
RBlakeslee at Celergy.com
Wed Dec 9 10:43:41 PST 2009
I've had to setup MRTG to run as a servie before, and followed the HowTo on the MRTG installation documents and it worked great. In doing a quick read again of the install doc (http://oss.oetiker.ch/mrtg/doc/mrtg-nt-guide.en.html) it looks like it depends on the MS windows 2000 resource kit tools. From the install doc:
Additional Prerequisites
MRTG must be installed and fully configured on the target system. In the following exercise the assumption is that MRTG is installed under c:\mrtgand all the sample files use this location.
Microsoft Tools SRVANY.exe (Applications as Services Utility) and INSTSRV.exe (Service Installer) - Those files can be downloaded from Microsoft as a part of Windows 2000 Resource Kit at http://www.microsoft.com/windows2000/techinfo/reskit/tools/default.asp. They are also available from other locations such as http://www.electrasoft.com/srvany/srvany.htm, http://www.iopus.com/guides/srvany.htm, etc. Detailed instructions on how to use this package are available at http://support.microsoft.com/kb/q137890/. In order to follow the steps in this HOW-TO you MUST obtain both executables.
You must have administrative rights on the target system.
I know that we're talking about two different products, but just wanted to point this out as a resource since it was something I've had to use many times and it seemed to work well.
-----Original Message-----
From: sdw2003-bounces at mattware.com [mailto:sdw2003-bounces at mattware.com] On Behalf Of Néstor
Sent: Wednesday, December 09, 2009 9:59 AM
To: San Diego Windows 2003 User Group
Subject: [sdw2003] How to create a service on a windows 2003
Windowers,
I am trying to create a service on a windows 2003 host and I am using some
examples from this page http://support.microsoft.com/kb/251192
but it is not working.
can someone that knows windows give me a hint on creating a service
or what am I doing wrong?
Below is hte command I am using ante response from the server:
------------------------------------------
C:\>*sc.exe create SolrService binPath="D:\start_solr.bat" start=boot*
DESCRIPTION:
Creates a service entry in the registry and Service Database.
USAGE:
sc <server> create [service name] [binPath= ] <option1> <option2>...
OPTIONS:
NOTE: The option name includes the equal sign.
type= <own|share|interact|kernel|filesys|rec>
(default = own)
start= <boot|system|auto|demand|disabled>
(default = demand)
error= <normal|severe|critical|ignore>
(default = normal)
binPath= <BinaryPathName>
group= <LoadOrderGroup>
tag= <yes|no>
depend= <Dependencies(separated by / (forward slash))>
obj= <AccountName|ObjectName>
(default = LocalSystem)
DisplayName= <display name>
password= <password>
---------------------------------------
Thanks,
Néstor :-)
_______________________________________________
sdw2003 mailing list
sdw2003 at mattware.com
http://lists.mattware.com/mailman/listinfo/sdw2003
More information about the sdw2003
mailing list