From 5ca717d7e0da4ce11070f70b64430c717d6fb6ca Mon Sep 17 00:00:00 2001 From: Flaminel Date: Thu, 27 Mar 2025 19:53:57 +0200 Subject: [PATCH] Update README.md --- README.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ed822e1..0817096 100644 --- a/README.md +++ b/README.md @@ -271,7 +271,21 @@ services: > [!TIP] > ### Run as a Windows Service -> Check out this stackoverflow answer on how to do it: https://stackoverflow.com/a/15719678 +> 1. Download latest nssm build from `https://nssm.cc/builds`. +> 2. Unzip `nssm.exe` in `C:\example\directory`. +> 3. Open a terminal with Administrator rights and execute these commands: +> ``` +> nssm.exe install Cleanuperr "C:\example\directory\cleanuperr.exe" +> nssm.exe set Cleanuperr AppDirectory "C:\example\directory\" +> nssm.exe set Cleanuperr AppStdout "C:\example\directory\cleanuperr.log" +> nssm.exe set Cleanuperr AppStderr "C:\example\directory\cleanuperr.crash.log" +> nssm.exe set Cleanuperr AppRotateFiles 1 +> nssm.exe set Cleanuperr AppRotateOnline 1 +> nssm.exe set Cleanuperr AppRotateBytes 10485760 +> nssm.exe set Cleanuperr AppRotateFiles 10 +> nssm.exe set Cleanuperr Start SERVICE_AUTO_START +> nssm.exe start Cleanuperr +> ``` ### Linux