2022-07-23 12:28:32 +02:00
|
|
|
# The pybatmesh systemd service
|
2021-07-26 12:28:50 +02:00
|
|
|
# See man:systemd.service(5) and man:systemd.unit(5)
|
|
|
|
# before editing this file.
|
2021-05-10 11:45:42 +02:00
|
|
|
[Unit]
|
2021-08-16 15:26:17 +02:00
|
|
|
Description=Setup mesh networks
|
2021-06-06 07:55:37 +02:00
|
|
|
Requires=systemd-networkd.service
|
2021-10-22 09:35:37 +02:00
|
|
|
Requires=iwd.service
|
2021-06-06 07:55:37 +02:00
|
|
|
Wants=systemd-resolved.service
|
|
|
|
After=iwd.service
|
2021-08-25 12:22:46 +02:00
|
|
|
After=systemd-networkd.service
|
|
|
|
After=systemd-resolved.service
|
2021-10-22 09:35:37 +02:00
|
|
|
# Stops NetworkManager if already running
|
2021-06-06 07:55:37 +02:00
|
|
|
Conflicts=NetworkManager.service
|
2022-07-23 12:28:32 +02:00
|
|
|
# This stops NetworkManager when pybatmesh is enabled
|
2021-06-06 07:55:37 +02:00
|
|
|
After=NetworkManager.service
|
2021-05-10 11:45:42 +02:00
|
|
|
|
|
|
|
[Service]
|
2021-09-07 07:49:14 +02:00
|
|
|
Type=notify
|
|
|
|
NotifyAccess=all
|
2021-06-10 05:45:58 +02:00
|
|
|
Restart=on-failure
|
2021-07-26 12:28:50 +02:00
|
|
|
RestartSec=2sec
|
2022-07-23 12:28:32 +02:00
|
|
|
ExecStart=pybatmesh --systemd
|
2021-09-27 19:00:07 +02:00
|
|
|
KillSignal=SIGINT
|
2022-07-23 12:28:32 +02:00
|
|
|
# pybatmesh already logs to systemd journal so we don't need
|
2021-09-07 07:49:14 +02:00
|
|
|
# stdout and stderr.
|
|
|
|
StandardOutput=null
|
|
|
|
StandardError=null
|
2021-05-10 11:45:42 +02:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|