Background Service
The CLI is the control surface. A small native service is what keeps watching, notifying and staying connected while no terminal is open.
What runs in the background
The service starts ezz daemon — one long-running process that owns the work that cannot wait for someone to open a terminal:
- Monitors — domain health checks at a steady interval and certificate expiry tracking.
- Notifications — dispatch to your Discord and Telegram channels, including recovery messages when something comes back.
- Revision watcher — notices deployments and keeps their status current.
- Hub agent — the outbound connection to a paired Easy DevOps Hub, when one is configured.
- IPC channel — feeds live events to an open dashboard without either side opening a public port.
- Deploy hook — off until switched on; when enabled it listens for CI, even with the dashboard closed.
The daemon serves no HTTP port of its own; the one exception is the deploy hook, which is off until you switch it on and binds to loopback by default. The dashboard is started on demand with ezz --dash or Open Dashboard; the two processes talk over local IPC. This is why the service can run on a server with no exposed dashboard at all.
Service commands
# Linux: sudo asks for your password in this terminal;
# nothing in Easy DevOps stores or sees it.
# Windows Personal: no elevation at all.
# Windows Server: one UAC consent for the service step.
ezz service install
# everyday inspection
ezz service status
ezz service logs
# lifecycle
ezz service stop
ezz service start
ezz service restartAdministrator rights are needed for one thing only: Windows Server mode, which registers a real Windows service and writes under C:\ProgramData. Windows Personal mode (a Startup-folder launcher) and everyday CLI use need none. On Linux, systemd unit installation uses sudo interactively, on your terminal — never through the dashboard. Which commands need it and which do not is set out in Administrator rights in Server mode below.
| Action | What it does |
|---|---|
| service install | Write the service definition and enable it at boot (Linux / Windows Server) or at logon (Windows Personal). Prompts for the mode when Windows can go either way. |
| service status | Show whether the service runs and whether it starts by itself. The dashboard shows the same state on the Processes page. |
| service start | Start it now. |
| service stop | Stop it until the next boot or logon. Use this before maintenance. |
| service restart | Stop and start in one step. |
| service logs | Print recent output and error lines from the service log. |
| service repair | Reinstall the service definition without touching data or certificates — for when an interrupted update left it broken. |
| service uninstall | Remove the service definition. The data directory and every certificate stay where they are. |
How each platform runs it
| Platform | Mechanism | Starts |
|---|---|---|
| Linux | systemd unit easy-devops.service | at boot |
| Windows Server | WinSW service EasyDevOps, running as NT SERVICE\EasyDevOps | at boot |
| Windows Personal | Startup-folder supervisor — no admin rights, no Windows service | at logon |
Administrator rights in Server mode
Since 1.4.3 the commands that replace the service's files check for an administrator before they touch anything; the rest run from a normal PowerShell as your own account. Which is which:
| Command | Needs an administrator | Why |
|---|---|---|
| service install service repair | yes | Registers the service and writes the wrapper and runtime under C:\ProgramData\easy-devops. |
| service uninstall uninstall --purge | yes | Removes the service entry, moves the data back and on purge deletes the folder. |
| update runtime update | yes | Replaces the wrapper and the pinned node.exe, including the native modules built for it. |
| service start service stop service restart | no | The installing account is granted start, stop and query on the EasyDevOps service — and nothing else. |
| service status the rest of the CLI | no | The installing account gets Modify on C:\ProgramData\easy-devops, so the database is writable from a normal PowerShell. |
Run an elevated command from a normal PowerShell and it asks first: This needs administrator rights. Relaunch as administrator? (Y/n). Yes opens a new elevated PowerShell window through a single UAC prompt — no password — which runs the same command, shows its own output and stays open at the end; the original window says it handed off and changes nothing. No prints the exact command and changes nothing. In a script or CI there is no terminal to ask, so nothing is relaunched: the command is printed and the exit code is 3.
ezz service install
This needs administrator rights. Relaunch as administrator? (Y/n)
# Y -> one UAC prompt, then the same command in an elevated window
# N -> the command is printed, nothing changes
# no terminal (script, CI) -> the command is printed, exit code 3Both rights go to the account that ran install or repair, matched by SID rather than by name: start, stop and query on the service, and Modify on the data directory. Nothing else is granted — that account still cannot change the service's configuration or delete it, and the rights are never given to Users or Everyone. ezz service status shows the start and stop right on its Without admin line. An install made before 1.4.3 gets both by running ezz service repair once as administrator.
The runtime directory (C:\ProgramData\easy-devops\runtime) and the wrapper (...\bin) stay administrator-only on purpose: replacing node.exe there would run code as the service account. They no longer inherit the data directory's permissions, so the access above does not reach them.
On ezz service uninstall the start and stop right goes with the service, and the data-directory access is removed when the data is moved back. If you keep the data in C:\ProgramData your account keeps access, so the CLI still works; --purge removes the folder.
Dashboard Settings > Update in Server mode does not start an update from a non-elevated dashboard. It shows that updating needs ezz update from an Administrator PowerShell, with a copy button.
The pinned Node runtime
A service records an absolute path to one Node binary. If that path lives inside nvm and you later switch versions, the service would be pointing at a runtime that no longer exists. Easy DevOps pins a runtime per installation instead — a managed link at <data directory>/runtime/node on Linux, and a copied node.exe for a Windows Server service.
ezz runtime status # the pinned version and available LTS releases
ezz runtime update # move the service to a newer Node, with rollbackruntime updatekeeps the previous runtime long enough to roll back if the service fails to start on the new one.- Updating Node with nvm does not move the service; the pin is deliberate. Use
runtime update. - Native modules are rebuilt for the pinned ABI — pairing a different Node with an existing
.nodefile is what breaks services after a version switch.
Logs and diagnostics
ezz service logs prints the most recent output and error lines. On Linux, journalctl -u easy-devops carries the same stream. For a live look while debugging, run the worker in your terminal instead:
ezz daemon
# foreground, no web port. Ctrl+C to stop.
# Refuses to start a second copy — the single-instance lock is held
# by the installed service while it runs.If an update is interrupted, the CLI stays usable even when the service definition is broken. ezz service repair rewrites the unit or service entry, re-pins the runtime and leaves your data untouched.
A stop that was not clean, a crash loop, or an install that failed at the service step — see Troubleshooting for the log to read in each mode and the known fixes.