16 lines
622 B
Bash
16 lines
622 B
Bash
#!/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 FORBIDDEN="MicrosoftEdgeUpdate.exe"
|
|
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
|