Questions tagged [nssm]

NSSM - the Non-Sucking Service Manager for Windows.

135 questions
0
votes
0 answers

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 powershell).Source $scriptPath =…
MCaston
  • 1
  • 2
0
votes
0 answers

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't connect to the Solr interface…
0
votes
1 answer

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 index(indiex_two) of ElasticSearch. (Note:- both…
Dimple
  • 51
  • 6
0
votes
1 answer

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 error: Unexpected status SERVICE_STOPPED in response…
0
votes
0 answers

Is it possible to print a file when a python script is installed as a windows service with NSSM?

I have this function within a Python script that has been installed as a windows service with NSSM. When the Python script is run normally (i.e. not as a service), the file is printed. However, when it is installed as a service it does not print.…
tomatoeshift
  • 465
  • 7
  • 23
0
votes
1 answer

server fail while running as windows service

I have a jboss EAP7.1 server that connect to windows sql server management studio 18 with windows authentification and start correctly . But when i've added the jboss server as a windows service with nssm https://nssm.cc/ so that the server …
Memni Akram
  • 27
  • 1
  • 6
0
votes
0 answers

Why would a powershell script work in ISE and in a batch file, but not as a task or service?

I have a script that initiates and monitors two io.filesystemwatchers that process data automatically. It works flawlessly in ISE and as a batch file, but when I tried to run it as a task and as a service it doesn't appear to function at all. I…
Andy
  • 207
  • 4
  • 18
0
votes
1 answer

Install metabase using cmd

Using windows 10 cmd, i am trying to install metabase. nssm install metabase C:\Program Files\Java\jre1.8.0_144\bin\javaw.exe AppDirectory C:\Program Files (x86)\POS -jar metabase.jar It is installed successfully. but when i try to start…
msc
  • 33,420
  • 29
  • 119
  • 214
0
votes
1 answer

Install metabase using nssm and Inno Setup script

I want to open an administrative CMD window using Inno Setup and want to install: nssm install metabase I tried the following function, but it doesn't work. Exec(ExpandConstant('{cmd}'), ' nssm install', '', SW_SHOW, ewWaitUntilTerminated,…
msc
  • 33,420
  • 29
  • 119
  • 214
0
votes
3 answers

NSSM can't start windows service

I'm trying to run my wpf service with nssm service manager. The problem is that using nssm I can install service, but then when I try to start it I get the following response in terminal: MyService: Unexpected status SERVICE_PAUSED in response to…
Nikas Žalias
  • 1,594
  • 1
  • 23
  • 51
0
votes
1 answer

Converting .ps1 file to a Windows Service

I'm trying to convert a .ps1 file to run as a windows service. This needs to run as a service as it's requirements for Business Continuity (scheduled task is not an option). i've always used NSSM to wrap the .ps1 as it will then run via NSSM as an…
Ashaw
  • 27
  • 5
0
votes
1 answer

How to stop, restart, pause, resume via NSSM or cmd?

So NSSM has the command start to start the service: nssm start my-service However looking at the documentation I can't seem to find any other commands. It does state how it will shutdown the service but the actually command doesn't seem to…
basickarl
  • 37,187
  • 64
  • 214
  • 335
0
votes
0 answers

Running Python script as Executable

I have been attempting to run my python script as a service, and have followed the advice contained in several previous forum posts. However, these have not helped me thus far. Here is what I have attempted up until now: Used an SMWinservice class…
GeekGeek4
  • 149
  • 9
0
votes
1 answer

nssm - Not installing the application path and its parameters

I tried running the below command in administrator mode to install nginx as service nssm install ztestservice "C:\Stack\nginx\nginx.exe" nssm is installing the service but there is no reference to the application path in the registry. i.e. no…
LAX_DEV
  • 2,111
  • 3
  • 19
  • 29
0
votes
2 answers

Getting os.environ to work with Python run via NSSM

I am stuck on an environment variables mismatch. I run a Python script on Windows 10 via a program called NSSM. At runtime, I do the following: Load in parameters from a text file Put its contents into the environment using…
Intrastellar Explorer
  • 3,005
  • 9
  • 52
  • 119
1 2 3
8
9