mirror of
https://git.disroot.org/pranav/pybatmesh.git
synced 2024-11-10 07:21:59 +05:30
clean up runtime files when stopped
This only applies to the systemd service
This commit is contained in:
parent
cf54edf9b9
commit
d1ec77dc69
@ -27,6 +27,9 @@ ExecStartPre=/usr/bin/sleep 2
|
||||
ExecStart=/usr/bin/naxalnet
|
||||
# Reload systemd-networkd after naxalnet exits
|
||||
ExecStartPost=/usr/bin/networkctl reload
|
||||
# Delete all files in /run/systemd/network
|
||||
ExecStop=/usr/bin/find /run/systemd/network -type f -delete
|
||||
ExecStopPost=/usr/bin/networkctl reload
|
||||
# Delete the interfaces created
|
||||
ExecStopPost=/usr/bin/networkctl delete bridge0 bat0
|
||||
# Make python flush messages instead of buffering.
|
||||
|
Loading…
Reference in New Issue
Block a user