Running as a service
The next step would be to register AdGuard Home as a system service on Windows, Linux/(systemd | Upstart | SysV), or OSX/Launchd.
Run sudo ./AdGuardHome -s install to install AdGuard Home as a system service.
On Windows run cmd.exe with admin privileges and run AdGuardHome.exe -s install to register a windows service.
Here are the other commands you might need to control the service.
AdGuardHome -s uninstall - uninstalls the AdGuard Home service.
AdGuardHome -s start - starts the service.
AdGuardHome -s stop - stops the service.
AdGuardHome -s restart - restarts the service.
AdGuardHome -s status - shows the current service status.
Logs
By default, the log is written to stderr when you run AdGuard Home as a console application.
If you run it as a service/daemon, the log output depends on the platform:
Linux: the log is written to syslog.
MacOS: the log is written to /var/log/AdGuardHome.*.log files.
Windows: the log is written to the Windows event log.
You can redefine this behavior in the AdGuard Home configuration file.