Run as service
Use any executable file (including batch processing and badge) as a tool for running system services
Please refer to the following link for more information:
Introduction:
■ Run any executable file as a system service.
■ It is mainly used to port some Linux daemon. It can also be used to start any application.ProgramAnd maintainability.
■ Run quietly. No window will pop up unless interactive mode is specified.
■ Login is not required. The system runs automatically after startup and does not need to wait for the user to log on.
■ As an auxiliary function, it supports starting, stopping, and deleting any system service.
■ Complete commands for taking over the System Service Manager (start, stop, and so on ). After the program is terminated, it automatically submits the status to the Service Manager and exits without resident memory.
Please refer to the following link for more information:
Content added for version 1.1.0.628:
■ No prefix is required for all actions (such as Add/Remove.
■ Added the pause/continue operation.
■ At the beginning, a runassrv service can run multiple applications specified by/using line concurrently.
■ Runassrv.exe does not need to be placed in the system search path.
■ Adds a control operation to send a control code to the specified service.
■ Added the listsrv operation to list all services and drivers. Multiple filter conditions are supported.
■ Added the-logfile and-loglevel options and logging functions.
■ Newly added-the unstoppable System Service Manager rejects a service installed with this option.
■ Memory shrinkage policy. In typical cases, the memory overhead is less than kb.
■ The start/stop command is invalid On some systems.
Please refer to the following link for more information:
Content added for version 1.1.2.803:
■ If multiple/cmdline parameters are specified, the user commands will be executed one by one in the order specified by/cmdline when the service is started.
■ Each user command will be executed only after the previous/cmdline command is ready, ensuring that the dependency-related commands can run normally. (See "about execution readiness ")
■ Set the default "current working directory" parameter for each command. For example, if you run the command "/cmdline: C: \ test \ app.exe", the current working directory of the command will be set to "C: \ test \", ensure that the application can normally access configuration information and private data.
■ Execution ready ■ for Command Line Programs (including batch processing and corner books), execution ready means that the standard input/output device has been initialized, the main program entry (main () has been entered. For graphic interface programs, the execution is ready, which means that the main form registration and initialization are complete, and the program has waited for messages to be received in the main loop.
Please refer to the following link for more information:
Help screen:
C: \ Documents ents and Settings \ Administrator>
# Runassrv
========================================================== ==========================================
Run as service ver 1.1.2.803 by running Yang/2004-2006, freeware
========================================================== ==========================================
Run any program as a service
Usage: runassrv <action> <Options>
========================================================== ==========================================
Actions:
Add-Add a service.
Remove-remove a service.
Start-start a service.
Stop-stop a service.
Pause-pause a service.
Continue-continue a paused service.
Control-control a service by send it a op-code
Listsrv-list all installed services on local system
Listgrp-list all service load order groups on local system (by start
Order ).
-H-this screen
========================================================== ==========================================
Options:
-Define line-when the service start, witch program you want to run.
-Name-the service name.
-Dispname-Service's display name in Service Manager
-Desc-Service's description in Service Manager
Default: None
-Type-service type, can be:
Filesystemdriver
Kerneldriver
Ownprocess (default)
Technical Process
Interactiveprocess
Note: set this option incorrectly may endanger your system!
-Starttype-service start type, can be:
Systemstart
Bootstart
Autostart (default)
Demandstart
Disabled
Note: set this option incorrectly may endanger your system!
-Errctl-service error control policy, can be:
Errorignore
Errornormal (default)
Errorsevere
Errorcritical
Note: set this option incorrectly may endanger your system!
-Group-specify service load Order Group
Default: None
-DEPEN-names of services or load ordering groups that the system
Must start before this service, delimited '/'
Default: None
-User-specifies the name of the account under which the service
Shocould run.
Default: LocalSystem
-Pass-contains the password to the account name
Default: None
-Priority-priority of the program you want to run, can be:
Idle
Belownormal
Normal (default)
Abovenormal
High
Realtime
-Unstoppable-make service unstoppable by System Service Control Manager.
-Opcode-for "control", specify the operation code.
-Logfile-specify the logging target.
Default: Don't log to file.
-Loglevel-specify the lowest logging level, can be:
Debugonly (most detail)
Info
Warning
Error (default)
FatalError
Disabled (close logging output)
========================================================== ==========================================
Special options with "listsrv ":
-Name-list service name that match the wildcard Pattern
Default :*
-Dispname-service display name's wildcard pattern.
Default :*
-PID-service belong to specified process.
Default: Any
-Type-specify service types to be match, delimite "/".
Default: Any
-Starttype-specify service starttypes to be match, delimite "/".
Default: Any
-Group-service belong to the load Order Group
Default: Any
-State-Service's current state, can be:
Active
Inactive
Default: Any
========================================================== ==========================================