Run Naelox in the background
naelox service install keeps Naelox running after the terminal closes and starts it at boot or login. It refuses to install while a foreground naelox serve still holds the port, or while the Mac menu bar app already manages Naelox; stop that first.
./naelox_darwin_arm64 service installNo sudo. It writes a LaunchAgent for your user and logs to logs/naelox.log in the data folder.
The Mac menu bar app does the same job with a menu: it shows the server’s name, version, how many are watching and how many workers are connected, and offers Open, Restart and Stop. Use one or the other, not both.
sudo ./naelox_linux_amd64 service installThis writes /etc/systemd/system/naelox.service. The unit runs naelox serve --headless as the user who ran sudo, with that user’s data folder, so a library set up in the terminal carries over. Logs go to journalctl -u naelox.
Without sudo, it installs a user unit instead, which runs while that user is logged in. To keep a user unit running without a login, enable lingering: loginctl enable-linger $USER.
Managing it
Section titled “Managing it”naelox service statusnaelox service startnaelox service stopnaelox service restartnaelox service uninstallUnits restart only on failure. A restart from Settings → Server re-executes in place, so the service manager does not see it exit. naelox service stop stays stopped until you start it again.
Settings → Server shows how the server was started on the Start at login row: systemd, launchd, or app for the menu bar app.
- macOS:
~/Library/Application Support/Naelox/logs/naelox.log - Linux:
journalctl -u naelox -f - Anywhere:
naelox serve --log-file naelox.logwrites everything, including the workers’ output, to that file under the data folder, and rotates it to.1when it passes 10 MB.
Checking it is up
Section titled “Checking it is up”naelox healthcheck && echo upExits 0 when the local server answers.