Questions tagged [nssm]

NSSM - the Non-Sucking Service Manager for Windows.

135 questions
1
vote
0 answers

InfluxDB 1.8.3-1 as service on Windows10 using NSSM

hoping you can help me! I'm writing a script to install some services in windows. One of the services is InfluxDB. I need to use NSSM. But that's the problem. If I use the nssm gui nssm.exe install and then set those parameters like following (and…
Michele Ietri
  • 184
  • 1
  • 4
  • 16
1
vote
0 answers

Pyupdater loops when a new version arrived when using nssm

My program consists of the following steps: check for update if an update exists, download it, extract and restart the program run update checks in a new thread every 30s run the main program that prints the word YAY every 5s Here is the code of…
andlvovsky
  • 104
  • 2
  • 5
1
vote
0 answers

Converting PS1 (calling theFileSystemWatcher class) to a Service using NSSM

I created a powershell script that transfers any created file (using WinSCP) to a remote server, then moves the file to another local folder. The script works perfectly; however, it needs to start on server startup. Creating a service is the best…
genez
  • 11
  • 1
1
vote
1 answer

Using a BAT file as service with NSSM

I am writing a .BAT script which goes as follows: cd "C:\Program Files\WinRAR" winrar.exe Double clicking this batch file works fine and openes winrar for me....now i try installing it as service with NSSM i place nssm.exe in the same directory as…
AwesomeVk47
  • 73
  • 1
  • 5
1
vote
0 answers

NSSM service not executing batch script but was created and starts successfully

I want to automatically start my node server on the VM's reboot using the following batch script @echo off cd /D c:/Application Services/servers/dashboard/server echo Starting Dashboard Server In Production: port 8446 npm run prod the "prod" script…
Paul Sender
  • 376
  • 2
  • 19
1
vote
1 answer

NSSM startup batch scripts without visible console

I am not able to make NSSM runs a batch script with the console visible at desktop. I already tried to set it as a interactive process but still its not showing. Any idea? Below are my commands to create the service. nssm install "MyNginxStartup"…
zhuhang.jasper
  • 4,120
  • 4
  • 21
  • 29
1
vote
0 answers

NSSM - Trying to access Software/Google/DriveFS/Share

I'm using NSSM to run a dotnet core app as a Windows service, which works really well. However, I've noticed an error when I run nssm install MyAppName, which loads a window to set up the service. When I Select the executable to install, I notice…
devklick
  • 2,000
  • 3
  • 30
  • 47
1
vote
0 answers

NSSM Python Service pausing due to module error

I am trying to run a simple python script using NSSM (Non Sucking Service Manager) but I am failing to do so. Error I am getting: Unexpected status SERVICE_PAUSED in response to START control I checked the error log file and it says the following…
1
vote
0 answers

NSSM windows service still running after shutdown

I have a .net service installed and launched by NSSM, sometimes the service can shutdown with an emergency code, it completely stops any actions, but status still remains "Running". If I install and launch service via SC, service stops successfully…
1
vote
0 answers

AppRotateFile nssm

I would like to keep only the last backup rotated file with nssm WriteRegDWORD HKLM $REG_DWORD "AppRotateFiles" 1 WriteRegDWORD HKLM $REG_DWORD "AppRotateOnline" 1 #WriteRegDWORD HKLM $REG_DWORD "AppRotateBytes" 314572800 WriteRegDWORD HKLM…
khouloud mejdoub
  • 973
  • 1
  • 7
  • 14
1
vote
1 answer

NSSM stdout redirect is filled with strange characters

I tried to set up an nssm service for starting a node-js module using the NSSM service editor GUI. This worked fine for the command itself, node-js starts fine. The problem was when I tried to redirect the output, on the i/o tab, to a log file,…
Mike Arrh
  • 145
  • 9
1
vote
1 answer

How to handle infinity loop with service using PowerShell?

I have a powershell script contain of inifinity loop. I want to create a service using NSSM https://nssm.cc/description But the service is not working once I do some process in the script. This is how I create the service. $NSSMPath = (Get-Command…
Cheries
  • 834
  • 1
  • 13
  • 32
1
vote
1 answer

NSSM - Install windows service to run daphne server for django channels

I run the commands on a windows machine as shown below to start my server, D:\django_channels> django_channels_env\Scripts\activate (django_channels_env) D:\django_channels\djanog_project> daphne -e…
shaik moeed
  • 5,300
  • 1
  • 18
  • 54
1
vote
0 answers

Nodejs as Windows Service can't read files on network drive

I have developped a little app in NodeJs which read and write some files. These files are stored on a shared folder of my local network. Everything was working until I tried to start NodeJs as Windows Service through NSSM (a little .exe that allows…
Holgrabus
  • 141
  • 2
  • 9
1
vote
0 answers

When I'm running jar as a service with the help of nssm the JOptionPane.showOptionDialog() is not showing up

My program has the piece of code which pop-up the window dialogue box notifying the user about the ongoing process for this I'm using JOptionPane.showOptionDialog() But when I'm starting the program as a service instead of running a jar file, I'm…
BB1
  • 53
  • 1
  • 8
1 2 3
8 9