chore: add debug and NSSM deployment scripts to streamline local dev
and Windows service management
This commit is contained in:
15
nssm_deployall.sh
Normal file
15
nssm_deployall.sh
Normal 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
|
||||
Reference in New Issue
Block a user