Make service install converge: stop running service, refresh binary/config only on change, restart only if it was running
This commit is contained in:
@@ -118,6 +118,10 @@ as the virtual account `NT SERVICE\gpu-turnstile` (low-privilege,
|
||||
per-service, no password); the installer automatically grants it write
|
||||
access to the install and data directories — nothing else to do.
|
||||
|
||||
Re-running `--install-service` is safe: it stops a running service,
|
||||
replaces the installed binary only if it changed, fixes the registration
|
||||
only where it drifted, and restarts the service only if it was running.
|
||||
|
||||
### Run natively on Linux (systemd)
|
||||
|
||||
The same binary works on Linux. Install it as a systemd service as root:
|
||||
|
||||
Reference in New Issue
Block a user