mirror of
https://git.disroot.org/pranav/pybatmesh.git
synced 2025-01-06 06:53:48 +05:30
Pranav Jerry
7e513b8475
Added a Restart=on-failure on the systemd service. Now, after an error, the service will restart, and this time it should not exit with an error. This will make naxalnet.service work until #3 is fixed.
24 lines
550 B
Desktop File
24 lines
550 B
Desktop File
[Unit]
|
|
Description=Naxalnet
|
|
Requires=systemd-networkd.service
|
|
Requires=iwd.service
|
|
Wants=systemd-resolved.service
|
|
Before=systemd-networkd.service
|
|
After=iwd.service
|
|
|
|
# Stops NetworkManager and wpa_supplicant if already running
|
|
Conflicts=NetworkManager.service
|
|
Conflicts=wpa_supplicant.service
|
|
After=NetworkManager.service
|
|
After=wpa_supplicant.service
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
RemainAfterExit=yes
|
|
# Temporary (maybe permanent) fix to aborting after changing to ad-hoc
|
|
Restart=on-failure
|
|
ExecStart=/usr/bin/naxalnet
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|