NSSM - the Non-Sucking Service Manager for Windows.
Questions tagged [nssm]
135 questions
2
votes
1 answer
Selenium RemoteWebDriver against a Windows Service of ChromeDriver
Context:
Windows 10 Home;
Visual Studio 2015 Community;
C#;
NSSM;
ChromeDriver 2.23.409699 (49b0fa931cda1caad0ae15b7d1b68004acd05129);
Nuget package Selenium.WebDriver.2.53.1;
Nuget package Selenium.WebDriver.ChromeDriver.2.23.0.1
I…

bugmagnet
- 7,631
- 8
- 69
- 131
2
votes
1 answer
Windows service using nssm is working but not working with windows SC
I was supposed to convert a GoLang compiled file .exe as a service in windows but as the service was executed with 9 parameters from outside so I decided to use SC to make the .exe as a service and my syntax was ,
sc create myservice binPath=…

Kamikaze
- 23
- 1
- 8
2
votes
1 answer
Inno setup and NSSM service working integration
I have an application to pack into a setup file with Inno setup. Application must work as a service on Windows. I am using NSSM service manager to get it done in single computer. However in Inno setup package, I couldn't find any trick to make it…

Alican Selanik
- 21
- 2
2
votes
1 answer
Windows batch: find command and errorlevel
I'm trying to use the find command and errorlevel to evaluate the result of a command
Setlocal EnableDelayedExpansion
...
nssm status MyService | find "SERVICE_STOPPED"
if !errorlevel! equ 0 (
echo MyService is not running
)
Since I know the…

Gep
- 848
- 13
- 29
2
votes
2 answers
Installing service with NSSM in powershell
I am trying to install a Selenium as a service using NSSM and powershell. But whilst the service is created is does not have the correct parameters set.
The same command run in CMD executes successfully and installs the service as expected.
How do…

Chris
- 181
- 2
- 9
2
votes
0 answers
Java 7 vs Java 8, difference in calling external application from command line
I'm creating a tool for importing and exporting configurations for the Non-Sucking Service Manager (nssm). The tool itself will unfortunately be proprietary, so I can't show you the full code, but the problem I'm facing is showing in the short…

bananpermobil
- 21
- 2
2
votes
1 answer
InnoSetup and NSSM Exit code 5
I have an application installer in node-js platform, currently developing an installer with Inno Setup and NSSM (The application should run as a service).
The thing is when NSSM tries to register the service (The device is a Windows 8.1 32 bits…

Christian Marcu
- 21
- 2
1
vote
0 answers
How can I get loguru's logger to work while running a Python program as a Windows service with NSSM?
I can use NSSM to run my Python program as a service just fine, and I can run my Python program just fine on its own and get loguru output to a log file as well as console window - but when I run the program as a service with NSSM only the stdout…

blownupp
- 21
- 2
1
vote
2 answers
NSSM daily rotation
How to enable on the "daily" rotation. I need to rotate the logs strictly at 00:00 every day.
There is no word about it in the documentation, or i dont understand something.
I have service installation script "install.bat" in which all the…

AviK
- 19
- 1
1
vote
0 answers
Nodejs service with pkg does not open the following path with powershell
I have an application created with Nodejs + pkg + node-notifier + open that I create as a service with NSSM.
The problem is that the npm package 'open' when the app is as a service does not work when executing a command in powershel.
I have looked…

indice
- 11
- 1
1
vote
0 answers
Spaces in nssm.exe command output in powershell
I'm using nssm.exe in my scripts to manage the windows services. But in PowerShell, the command output is coming with spaces after every alphabet.
PS> $nssm = (Get-Command D:\nssm.exe)
PS> & $nssm
nssm.exe : N S S M : T h e n o n - s u c k i n g…

Farrukh Waheed
- 2,163
- 2
- 29
- 59
1
vote
0 answers
CORS error xmlhttprequest no 'access-control-allow-origin' header is present on the requested resource in Angularjs app
An Angularjs app is using a new connection to an AWS API GW service on a different domain. CORS has been enabled but am still getting error:
Access to XMLHttpRequest at
'https://api.ap-southeast-2.amazonaws.com/prod/api1' from…

user1746582
- 579
- 1
- 9
- 20
1
vote
0 answers
NSSM Limit file size creation by day and keep last 10 days worth of logs
I want to use NSSM to capture a single days worth of std_out and I want to be able keep only the last 10 days worth of std_out logs. Is this possible? This is what I currently have.
nssm set app AppStdoutCreationDisposition 4
nssm set app…

mg2967
- 11
- 1
1
vote
1 answer
Update Python Window Service in NSSM
I created Window Service using Non-Sucking Service Manager (NSSM) for python script. If I have to make some changes in python script .Do I only need to replace updated python script at the specified path from where NSSM picks up or do I need to…

Alok Sharma
- 95
- 1
- 12
1
vote
0 answers
node nssm http-server...service won't start
I have successfully used nssm to create a node service that runs in the background. I have done this, however, with .js files where you set the path to node.exe, then set the startup directory, then set the .js file you want to run in the…

Phil
- 87
- 6