Systemd Services
Unit file example
Section titled “Unit file example”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.targetEnable and start
Section titled “Enable and start”sudo systemctl daemon-reloadsudo systemctl enable --now license-monitorsudo systemctl status license-monitorjournalctl -u license-monitor -f