NSSM - the Non-Sucking Service Manager for Windows.
Questions tagged [nssm]
135 questions
4
votes
1 answer
NSSM couldn't set startup parameters for the service!deleting the service
The operating system is Windows Server 2008 R2 Enterprise 64-bit.When I was doing the following configuration,error appears like the following picture.It's a python service.
Error

MuZhouli
- 41
- 1
- 3
4
votes
1 answer
NSSM: Can't edit a service I created
I am using NSSM to create a service, however, after creation I need to set some parameters, such as AppDirectory, AppNoConsole, etc.
I am able to create the service using the GUI, but I want to do it via cmd, for which I have a batch file that goes…

Fede E.
- 2,118
- 4
- 23
- 39
4
votes
1 answer
How to handle path with spaces in Inno Setup?
I want to allow paths with spaces (for example program files) when installing my program with Inno Setup. However paths with spaces let my installed service crash.
The Inno Setup file looks like…

deamon
- 89,107
- 111
- 320
- 448
4
votes
0 answers
Running jar as a Windows service with nssm
I am trying to run a jar (spring app) as a Windows service. I am using nssm to do so.
When I run the jar file with java -jar myjar.jar everything works fine. My webapp responds when I enter localhost:8080 where it runs.
After I run
nssm install…

Ole-M
- 821
- 2
- 13
- 27
3
votes
1 answer
how to set two environment variables in nssm with command line
I tried to set two environment variables using
nssm set TestService AppEnvironmentExtra SOMEVAR=SOMEVALUE
but only the last value is considered, one command overlaps the other
i try
nssm install TestService TestPath
nssm set SystoreApi…

Wagner Bernardes Teixeira
- 31
- 1
- 3
3
votes
0 answers
Launching a program with GUI, without having to log into windows
I am new here, please let me know if I made an error in my posting.
I'm trying to launch an exe that has a GUI, without needing to log in to Windows 7.
I have tried:
Windows Task Scheduler,
NSSM,
SC command,
Batch file in startup folder,
…

Nerdzilla
- 31
- 1
- 3
3
votes
2 answers
NSSM - Install service from command line with many arguments
I am trying to make a batch file that will create my service and struggling with how exactly to list each parameter. I've researched this quite a bit and I can't seem to find the correct syntax. This is what i have right now :
nssm install…

Martin
- 1,977
- 5
- 30
- 67
3
votes
0 answers
Running aspnet core as a service - nssm vs RunAsService
I'm looking at the documentation for ASP.NET Core, under "Host in a Windows service" it says :
The recommended way to host an ASP.NET Core app on Windows without using IIS is to run it in a Windows Service.
Then it proceeds to give an example…

Carl Quirion
- 765
- 5
- 25
3
votes
2 answers
NSSM will not pickup executable directory
I'm trying to use the Non-Sucking Service Manager (NSSM) to create a service. Unfortunately, for whatever reason, NSSM won't play ball.
I'm trying to install the service using the following command:
nssm install "My Service" "C:\Program…

automation1002
- 31
- 2
- 3
3
votes
2 answers
Cannot run batch file as a windows service through nssm
I'm trying to run batch file as a windows service through nssm which will run an exe file if it is not runned.
My code to create service from batch file
CALL "%~dp0nssm64.exe" install MyService "%~dp0test.bat"
CALL "%~dp0nssm64.exe" start…

Henrik
- 159
- 1
- 15
2
votes
0 answers
nssm log rotation. How to limit files number
I use NSSM to install and start my Windows services. Also I am trying to rotate log files by size and limit their number. Rotation by size was implemented, but I can not limit number of files.
Issue is that for a few time in log directory will be…

Aleksandr
- 21
- 2
2
votes
0 answers
NSSM windows service shows running but output is not visible
I have a python execute files which runs every 5th minute and 35th minute of every hour. The script contains below code to run the content inside (itcmodel)
minutetorun = [5,35]
while True:
thisminute =…

phoenix
- 328
- 2
- 12
2
votes
0 answers
Pywin32 service fails to start, unable to read json file
I used the Pywin32 tools and NSSM to create a windows service for my Flask application. I noticed that the service wouldn't start giving me a message :
The service did not return an error. This could be an internal Windows error or an internal…

s_om
- 661
- 2
- 9
- 24
2
votes
1 answer
GUI not showing on .jar service when using NSSM
Testing out nssm with a program which is as simple as:
import javax.swing.JOptionPane;
// a simple program to test if i can get nssm to work
public class Test {
public static void main(String[]args) throws InterruptedException {
…

John
- 346
- 1
- 11
2
votes
2 answers
Child process is killed when windows service is stopped
I have a small C# console app that monitors some configured process(es)/app(s), these are also C# console apps, and keep them running so it starts them if they crashed. It works well if I run this monitor console app by executing exe file (in…

Karel Bém
- 97
- 8