Systemd Services
-
Create the unit file
Section titled “Create the unit file”Create
/etc/systemd/system/license-monitor.service:[Unit]Description=License MonitorAfter=network.target[Service]Type=simpleWorkingDirectory=/opt/license-monitorExecStart=/opt/license-monitor/bin/license-monitor --config /opt/license-monitor/config.toml --mode commandRestart=alwaysRestartSec=3User=license-monitorGroup=license-monitor[Install]WantedBy=multi-user.target -
Enable and start
Section titled “Enable and start”Terminal window sudo systemctl daemon-reloadsudo systemctl enable --now license-monitorsudo systemctl status license-monitor -
Monitor logs
Section titled “Monitor logs”Terminal window journalctl -u license-monitor -f