22 lines
830 B
Desktop File
22 lines
830 B
Desktop File
# /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
|