Skip to content

Multiple services at once? #6

@drajabr

Description

@drajabr

Hey, I was disappointed to see last update on NSSM was 2017, so many thanks for keeping this up.

The possibility to reuse the service manager to start multiple services, I'm thinking we could have:

  1. Different json configuration files for different instances, then create windows service for same SSM exe with different json files provided as parameter? Is that even possible?
  2. Inside the same json configuration file, we have more than configuration for example:
{
  "Configs": [
    {
      "AppPath": "<Filepath>\\TestAPI.exe",
      "AppParams": "",
      "RestartAppAutomatically": false,
      "RestartDelay": 5000
    },
    {
      "AppPath": "<Filepath>\\MyApp2.exe",
      "AppParams": "arg1 arg2",
      "RestartAppAutomatically": true,
      "RestartDelay": 3000
    },
    {
      "AppPath": "<Filepath>\\AnotherApp.exe",
      "AppParams": "",
      "RestartAppAutomatically": false,
      "RestartDelay": 10000
    }
  ]
}


Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions