chore: add debug and NSSM deployment scripts to streamline local dev

and Windows service management
This commit is contained in:
2025-08-07 11:40:39 +02:00
parent 4fb751a268
commit 6fab1e1327
6 changed files with 58 additions and 0 deletions

15
nssm_deployall.sh Normal file
View File

@@ -0,0 +1,15 @@
#!/bin/bash
set -e
# hitman service
# Currently does nothing (no FORBIDDEN)
nssm install Hitman C:\\Users\\Administrator\\go\\bin\\hitman.exe
nssm set Hitman AppEnvironmentExtra SCAN_INTERVAL=2s
nssm set Hitman AppDirectory C:\\Users\\Administrator\\Seafile\\Projects-Go\\GoProjects\\hitman
nssm set Hitman AppExit Default Restart
nssm set Hitman AppStdout C:\\tmp\\hitman.log
nssm set Hitman AppStderr C:\\tmp\\hitman.log
nssm set Hitman DisplayName Hitman
nssm set Hitman ObjectName LocalSystem
nssm set Hitman Start SERVICE_AUTO_START
nssm set Hitman Type SERVICE_WIN32_OWN_PROCESS