[Unit] Description=ais_hub AIS/GPS/radio telemetry aggregation service After=network-online.target Wants=network-online.target [Service] Type=simple User=ais_hub Group=ais_hub ExecStart=/usr/bin/python3 -m ais_hub --config /etc/ais_hub/config.yaml Restart=on-failure RestartSec=3 KillSignal=SIGTERM TimeoutStopSec=15 LimitNOFILE=4096 # Hardening (embedded Linux friendly defaults; remove if they conflict with # UART device access). NoNewPrivileges=true ProtectSystem=strict ProtectHome=true PrivateTmp=true ReadWritePaths=/var/lib/ais_hub /var/log/ais_hub # For UART access, user must be in the serial/dialout group or a udev rule # should grant access to /dev/ttyS1. [Install] WantedBy=multi-user.target