Contents
English (United Kingdom)French (Fr)Deutsch (DE-CH-AT)
Search
Login
Who Is Online?
We have 90 guests online
Navigation
Home Free Software Command line utilities ServiceExe - Install and run applications as Windows services - Example configuration file
Most Recent
Featured Articles
Joomla 1.5 Featured Articles
Navigation
Home Free Software Command line utilities ServiceExe - Install and run applications as Windows services - Example configuration file
English (United Kingdom)French (Fr)Deutsch (DE-CH-AT)
ServiceExe - Install and run applications as Windows services - Example configuration file E-mail
User Rating: / 42
PoorBest 
Free Software - Command line utilities
Written by Thomas   
Thursday, 05 February 2009 17:22
Article Index
ServiceExe - Install and run applications as Windows services
License
Installation
The configuration file
Example configuration file
Configuration: The [General] section
Configuration: Process task sections
Embedded environment variables
Command line parameters
User credentials
Process logging
Common pitfalls
All Pages



Open ServiceExeTest.ini
 

ServiceExeTest.ini:

; ***************************************************************************
;
; Example configuration file for ServiceExe.exe
;
;
; History
;
; When      Who          What
; ---------------------------------------------------------------------------
; 2008-02-04  Thomas        Created.
; 2010-09-27  Thomas        Updated for different fail strategies.
;
; ***************************************************************************
 
[General]
 
; The service's name to display.
;  The service name (not the display name) is the name of the ini file.
ServiceDisplayName=Testing ServiceExe
 
; The service's description.
ServiceDescription=This is our new service
 
; Time in seconds to wait before the processes are
;  started.
StartUpPause=1
 
; Time in seconds to wait between each process to
;  start.
CreateProcessPause=1
 
; Path to the log files. If this is not given, the application's
;  (executable file's) path is assumed. Note that this will not work
;  without changing the permissions accordingly.
 
LogPath=Logs
 
; Lists all the sections of the processes, separated by blanks.
ServiceProcesses=Process1
 
[Process1]
ApplicationName=%ComSpec%
CommandLine=/C Test.cmd
CurrentDirectory=
 
; Specifies the behaviour in case the process terminates or its
;  creation fails. Default is behaviour 0.
;
;  0 = The service stops, terminating all processes that belong to it.
;       Use this for Windows command line applications.
;  4 = The service stops, ending all processes that belong to it by
;       sending WM_QUIT messages to their windows. Use this for
;       Windows GUI (graphical user interface) applications.
FailStrategy=0
 
Open ServiceExeTest.ini


To test the file, invoke ServiceExe with the following parameters:

ServiceExe.exe -console ServiceExeTest.ini

 

Download ServiceExe.zip (0.11 MiB = 108.4 KiB = 111,041 bytes)

 



Last Updated on Thursday, 05 July 2012 13:25
 
You need to login or register to post comments.
Discuss this item on the forums. (0 posts)
Discuss (0 posts)