Questions tagged [nssm]

NSSM - the Non-Sucking Service Manager for Windows.

135 questions
0
votes
2 answers

Running python script in nssm

I was able to set up a Windows Service through Non-Sucking Service Manager (nssm) in order to run my Python script every 15 minutes. It seems that the service is created and is "running", but there's no indication the script is running. The script…
Walt Reed
  • 1,336
  • 2
  • 17
  • 26
0
votes
2 answers

Using NSSM to start a NodeJs Child process within a windows service is not working

So i currently have a Nodejs application that spawns a child process that executes a java application and this is working just fine when ran directly from the command prompt. http.createServer(function (request, response) { console.log('Started…
AdamH409
  • 83
  • 1
  • 8
0
votes
2 answers

Python pywin32/nssm can't start service

My script/program consists of main.py; submethod1.py, submethod2.py in subdirectory; second subdirectory for temporary files; one txt file for logging I'm s struggling with running it as service for a week. PyWin32 gives me Error 1053: The service…
Rostislav Aleev
  • 351
  • 5
  • 19
0
votes
0 answers

Java windows Service starts a new process but I'm unable to see it (although it's present on Task Manager)

I have a java app (which I made windows service using nnsm) that sets up sockets on localhost. When a message is received by that app it opens internet explorer. When I run the app using cmd (e.g java -jar myServer.jar) it works as expected. An…
0
votes
1 answer

NSSM: Creating service from a python script

I need to create a service from a python script, for this I am using NSSM(Non-sucking service manager). I am able to install the service using below command: nssm install However when I try to start the service, it gets in Paused state. nssm start…
Pawan Dubey
  • 192
  • 3
  • 15
0
votes
1 answer

Installing jar file via nssm

I'm struggling to get this to work using nssm (Non-sucking Service Manager). I'm trying to get a jar file (Spring-Boot application) to run. With out arguments, I got the service to install and run fine, but I need to pass in VM arguments and I'm…
Gerb
  • 883
  • 12
  • 31
0
votes
1 answer

Trying to run batch file as a Windows service

I have created a simple batch file to start my redis node. @echo off start cmd.exe /k "cd C:\Users\cmguser\Desktop\7000 & redis-server ./redis.conf" This batch file is working fine, if I am running it in cmd as administrator. I am creating this bat…
Rohit Bagjani
  • 1,264
  • 2
  • 11
  • 14
0
votes
0 answers

using nssm to create a node script can't be started

I am using NSSM to create a node process. I have a simple script that listens for messages sent to an MSMQ queue which uses node-msmq https://www.npmjs.com/package/node-msmq const msmq = require('node-msmq'); const fs = require('fs'); var queue =…
0
votes
0 answers

Cannot read file FileNotFoundException - Access is denied

I'm getting "Access is denied" when reading a file from my Java program on Windows Server 2012. I've been doing this sort of thing for years so I'm not a newbie. I just can't figure out what I'm missing! Here is the stack (edited): Caused by:…
Mike Cooper
  • 1,065
  • 3
  • 13
  • 34
0
votes
1 answer

Connect to console app running as a system task on Windows server

I run several game servers on a single windows-server-2012-r2. Many of the game servers run as console-application. I have created scheduled-tasks to run each on windows startup even if I'm not logged on. I would like to be able to attach to the…
0
votes
0 answers

On Windows, is there a way to tie a running service to the pid of a process that was spawned by nssm?

(updated for requested clarification) I need to associate a running service to a particular jvm / java command with args. To complicate things, the application uses nssm (non-sucking service manager) to execute a .bat. Inside the .bat are the args…
adamt8
  • 308
  • 1
  • 7
0
votes
1 answer

Creating a Java Service using NSSM causes an issue in accessing a COM interface

I am running a jar file that access a COM interface using a batch file. When I run the jar directly using the batch file it works fine. But when I use NSSM to setup a service using that batch file, I cannot call functions on that COM interface. The…
highflyer
  • 303
  • 2
  • 5
  • 14
-1
votes
2 answers

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 using the python interpreter. But as a service, it…
-1
votes
2 answers

Can't use nssm set command in batch script

When using this command in my batch script the set command is interpreted as the default windows batch "set an environment command": @echo off echo "Always run this script as Administrator. If you don't the service will be installed but not…
FabianTe
  • 516
  • 4
  • 22
-2
votes
1 answer

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 they were not effective. Is there anyone who can…
MoJustNow
  • 3
  • 3
1 2 3
8
9