Skip to content

MatthewChudleigh/SimpleServiceManager

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SSM: Simple Service Manager

Run any Windows application as a Service, an NSSM alternative

Features:

  • .NET 9 alternative of NSSM (the Non-Sucking Service Manager), srvany and other service helper programs.
  • Automatically handles failure of the application running as a service.
  • Continuously monitors the Windows application status.
  • If says it's running, it really is.
  • Service automatically stops if the launched application exits.
  • Service Logs all errors in log files to help troubleshoot the issues.

Added new features in v1.1.0

  • Additional parameters "AppParams".
  • Restart App Automatically "RestartAppAutomatically".
  • Restart Delay "RestartDelay".
  • In addition to .exe files, can run both .bat and .ps1 fields as well.

Download

Installation

  • Extract SimpleServiceManager.zip in an accessible folder on your system.

  • Modify the appsettings.json file with the path to your Application.exe which you want to run as service

{
  "Configs": {
    "AppPath": "<Filepath>\\TestAPI.exe",  // can not be null
    "AppParams": "",  // "param1 param2 param3 param4 param5",
    "RestartAppAutomatically": false, // can not be null
    "RestartDelay": 5000 // can not be null. Min 1000 ms
  }
}
  • Install it as a service from an Elevated (Administrator) Command Prompt:
sc create "MyServiceName" obj= LocalService start= auto binPath= "C:\Path\To\SimpleServiceManager.exe"
sc description MyServiceName "My services description"
sc start MyServiceName

Note the spaces between start=, binPath= and their parameters. This is intended.

Uninstallation

sc stop MyServiceName
sc delete MyServiceName

About

Simple Service Manager .NET8 alternative of NSSM - the Non-Sucking Service Manager

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • C# 100.0%