Questions tagged [nssm]
NSSM - the Non-Sucking Service Manager for Windows.
137
questions
-1
votes
0
answers
19
views
How to create a windows service using python to capture image through webcam
capture a image through webcam using python windows service and store it to the local folder for every n seconds
I have tried it. I installed it But service doesn't run. Please help me.
0
votes
0
answers
30
views
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 ...
0
votes
1
answer
16
views
error 1503 while installing solr 9 with nssm
Error 1053 - Service do not respond to the start or control request in a timely fashion
I am installing solr 9.1.1 version using nssm. The path to executable was repeatedly setting to nssm.exe path. ...
0
votes
0
answers
19
views
How to automatically update Electron app when NSSM keeps it always running
I have an electron app with auto updater working perfectly. I'm able to release a new version and have it auto download and run the latest version. All works great. Now, I also have NSSM running to ...
0
votes
0
answers
22
views
Can't open an in desktop from nodejs program when using nssm
I have a nodejs program running as background process with nssm (I build an executable and then have it be managed by nssm).
My program needs to open a desktop app when the user requests it, the ...
0
votes
0
answers
31
views
Can I configure NSSM to run my python script from a non-elevated/admin shell?
I've installed NSSM to run some maintenance Python scripts over ODBC to QuickBooks (using QODBC Driver for QuickBooks).
NSSM site says it's running with elevated/admin privileges:
"Danger Will ...
-1
votes
2
answers
32
views
changing the wallpaper in python program works when the program is ran directly. but doesn't work when it's run from a service
I've been wanting to make a program that immediatly sets my wallpaper to 1 picture, waits 10 seconds, then sets it to the other.
The program works just fine when running it from command prompt, or ...
-2
votes
1
answer
46
views
Run php script as windows 10 services using nssm
I have a PHP script inside
c:users\xampp\htdocs\myapp\myphpscript.php
What I want is to make a windows service that runs this PHP script in the background.
So I searched for some questions here but ...
0
votes
0
answers
157
views
How do I host a discord bot with NSSM correctly?
I'm trying to use NSSM to host my discord bot written in Node.js on my Windows Server.
When starting it, I get this error which I couldn't figure out:
throw err;
^
Error: Cannot find module 'C:\...
0
votes
0
answers
75
views
Not Able to set NSSM Service Options using ansible win_nssm module?
I wanted to create a ansible playbook for Windows Host to Install a service and set the service options using NSSM in windows and for that I tried exploring win_nssm module to find any suitable option ...
1
vote
0
answers
135
views
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 ...
2
votes
1
answer
157
views
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 ...
0
votes
0
answers
15
views
NSSM - not starts service after 1 execution with error - Non-Sucking Service Manager
I have multiple services in nssm (windows server 2019) but there is one which doesn't run.
I have set it up exactly as other one that runs successfully.
In the log of the application I get error for ...
0
votes
1
answer
101
views
Amazon EC2 Windows Instance still showing nginx home page with public ip
I have created a windows amazon ec2 instance and setup a flask app on it. localhost opens the required home page. Then is used waitress-serve to host the app.py file and also created a service with ...
0
votes
0
answers
99
views
Powershell, Capture the Control-C signal from NSSM
I have implemented a multithreaded application in powershell that I want to run as a service. My first version looped forever, but I had to modify it to support graceful shutdown of all threads.
...
0
votes
0
answers
44
views
Where can i download nssm from ? the website is not available
Every time I go to nssm site to download it says to me that This site can’t be reached , how can I solve this and why is this happening ?
0
votes
0
answers
40
views
Windows service slowing down when cpu is high
I need to run a python script as a windows service and to do so I used Pyinstaller to package the app into a single executable file and NSSM to load the new service. This all works fine, but when the ...
0
votes
0
answers
218
views
How to run a powershell script as a windows service?
I have below powershell script which fires refresh command every 1 min or so. It works perfectly fine when run manually from powershell. But I am having issues running it as a service.
while (1) {
$...
1
vote
0
answers
44
views
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 ...
0
votes
0
answers
151
views
Nodejs running as a service with nssm in windows can't access a network drive
I have a nodejs program that accesses files via fs in a network drive. When I run this program from the console everything goes fine.
When the same program runs as a service wrapped with nssm (https://...
1
vote
0
answers
135
views
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> & ...
1
vote
0
answers
3k
views
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....
0
votes
0
answers
48
views
NSSM running partially as a service
i need to place an APP (.exe file) under NSSM to be sure that even after a computer reboot my application will run.
This app is working fine while is called with a double-click on the .exe but when is ...
0
votes
1
answer
249
views
NSSM and log monitoring via Filebeat
I'm working on adding log analytics for a simple application. The application is a Windows Service app hosted using NSSM and logs are going to ELK stack (Elastic Search + Kibana). Unfortunately, the ...
1
vote
0
answers
97
views
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 ...
0
votes
1
answer
1k
views
how to run a program on start up as an administrator using NSIS and NSSM?
I am using nsis to create installer for windows and I am using NSSM to run the application.
everything is fine when I install my server , but the problem my server needs to run as admin in order to ...
1
vote
1
answer
473
views
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 ...
0
votes
1
answer
290
views
undefined method `nssm' for cookbook
I am trying to install a jmeter service using nssm through cookbook.
but while running chef converge I am getting below error
FATAL: NoMethodError: undefined method `nssm' for cookbook: (chef-apply ...
-1
votes
1
answer
802
views
npm http-server as a Windows Service
I am using http-server to host one of my local folders:
http-server ./
As you can see I downloaded nssm.exe. I am wondering how I can make this http-server command as service so I can permanently ...
0
votes
1
answer
190
views
Making python as windows service
I have created python file which intern call PowerShell Script. I want to make this as windows service. can anyone of you help me with that. I'm trying by using NSSM. when I started running service, ...
2
votes
0
answers
592
views
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:
...
1
vote
0
answers
115
views
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 ...
0
votes
1
answer
156
views
How to run a Pyinstaller compiled exe with NSSM
I used Pyinstaller to make a exe. The exe works perfectly fine but when I use NSSM to launch it on startup, the scripts runs but does nothing from the part where it is supposed to take an input from ...
8
votes
1
answer
1k
views
"No input file specified" for some versions of PHP
I have multiple versions of PHP installed as per this guide, that I wrote.
Basically, it is an ApacheLounge installation talking to PHP via FastCGI on Windows 10.
This used to let me run these PHP ...
1
vote
0
answers
977
views
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 ...
0
votes
1
answer
682
views
How to create service for django app with nssm on windows
nssm service to run django application.
I have created nssm service to run my django app on windows machine but it doesn't work. Please suggest an alternative package or the right config to get the ...
0
votes
1
answer
352
views
Is it a good idea to run django management command as windows service?
Following this answer you can register a python script as a windows service with NSSM.
But are there any obvious downsides on registering a django management command as windows service this way?
nssm....
3
votes
1
answer
9k
views
FastAPI as a Windows service
I am trying to run FastAPI as a windows service.Couldn't find any documentation or any article to run Uvicorn as a Window's service.
I tried using NSSM as well but my windows service stops.
1
vote
0
answers
202
views
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 ...
0
votes
1
answer
614
views
Facing error when python exe service is started after nssm
I have a situation where i have to run a python.exe as a service in NSSM. To test, I have created .exe file which has only import pandas as pd in it. I created the service in NSSM successfully. But ...
0
votes
2
answers
563
views
using jodconverter from java jar wrapped in a windows service - font problem
I have been using jodconverter library for converting Microsoft Word documents (*.doc) to PDF files on the backend server. The backend is a Spring Boot application running on an old Windows Server ...
0
votes
0
answers
524
views
NSSM Powershell Script Windows 2012 Server. Error creating service
I have a powershell script to create service that works on my local Windows 10 PC. Below works correctly.
$nssm = (Get-Command nssm).Source
$serviceName = 'ImageResize'
$powershell = (Get-Command ...
1
vote
0
answers
116
views
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 ...
4
votes
0
answers
2k
views
NSSM service does not show GUI
I have a maven/java project i am trying to make a windows service. I have a .exe which is used to distribute the program, and now I need to make it a windows service.
The executable works fine by ...
0
votes
0
answers
472
views
Apache Solr doesn't start without explicit error logs
My Apache Solr service doesn't start well and I don't find any Error in the log file that can explain why (you can find the startup logs below).
When I try to call this server I get a 500 error. I can'...
0
votes
1
answer
356
views
Running multiple configuration files as logstash services using NSSM
I am using logstash-7.4 and running it as service using NSSM. I have one config file which ingest the data to index(index_one) of ElasticSearch and another config file which ingest the data in another ...
1
vote
1
answer
6k
views
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 ...
1
vote
0
answers
983
views
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 ...
1
vote
1
answer
991
views
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 ...
0
votes
1
answer
374
views
Run Python Script (On Network Drive) as Windows Service with NSSM
I have followed around 5 tutorials on using NSSM to run a python script residing on a network drive. It creates the service, I can edit the service but when I start the service I get the following ...