- Add a firts release of systemd script.
This commit is contained in:
21
etc/systemd/system/rx3-network.service
Normal file
21
etc/systemd/system/rx3-network.service
Normal 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
|
||||||
Reference in New Issue
Block a user