Service Definition File
Previous page  Next page
The Service Definition File (SDF) holds all properties of a NT Wrapper service.
Each service instance expects to find its SDF in the same directory where ntwrapper.exe is located as well. The SDF is identified thru its file name that is the name of the service plus ".ini" extension. The SDF is read once when the service starts, changes do not take effect unless the service is restarted. The SDF is actually a simple INI-file. Most value names and section names are self-explaining and approximately correspond to the fields in the NT Wrapper Manager.
The Password value from the SERVICE_INSTALL section is not written by the NT Wrapper Manager but can be assigned manually if needed.

An example SDF:

[SERVICE_OPTIONS]
OnAllAppsExit=1
LogToDisc=0
LogToEventLog=1
MainLogFile=

[SERVICE_INSTALL]
ServiceName=NTWrapperTest
DisplayName=NT Wrapper Test
Description=Runs Notepad.exe as an interactive service
Interactive=1
Account=
Password=
LoadOrderGroup=
StartType=Manual
DOS_0=Tcpip
DOG_0=Network

[APPLICATION_1]
Executable=c:\winnt\notepad.exe
Params=
WorkingDir=c:\
StartUpTimeout=0
ShutDownTimeout=5000
RestartApp=0
LaunchDelay=0
ShowWindow=Normal
Priority=Normal
RedirectStdOut=0
RedirectStdErr=0
StdOutFile=
StdErrFile=
OwnLogFile=
ExecutionTime=0
AffinityMask=1
ENV_Path=%Path%;C:\NTWrapper



NT Wrapper v1.06 - May 13, 2005
Copyright © 2002- 2005 P.Pohman
NT Wrapper Home