- Add a firts release of systemd script.

This commit is contained in:
2025-07-05 21:05:03 +02:00
parent 142bee2dfd
commit c9388dae6b

View File

@@ -0,0 +1,21 @@
# /etc/systemd/system/rx3-network.service
[Unit]
Description=Rx3 Network Service
Documentation=man:systemd.service(5)
After=network-online.target
Wants=network-online.target # guarantees wait-online is pulled in
Before=docker.service # run *first*, because Docker needs the bridges
[Service]
Type=oneshot # the script runs and exits
ExecStart=/usr/local/sbin/rx3_net_adm start
ExecStartPost=/usr/local/sbin/rx3_net_adm status
ExecStop=/usr/local/sbin/rx3_net_adm stop
ExecStopPost=/usr/local/sbin/rx3_net_adm status
ExecReload=/usr/local/sbin/rx3_net_adm restart
RemainAfterExit=yes # keeps the unit in “active” state
TimeoutStartSec=30s # tweak to taste
TimeoutStopSec=15s # idem
[Install]
WantedBy=multi-user.target