Skip to content

Commit

Permalink
Update meshtasticd.service
Browse files Browse the repository at this point in the history
Adding restart on service failure with 3 seconds between restart to stop fasst restart loops. Adding StartLimitBurst to limit it to 5 restarts in 200 seconds.
  • Loading branch information
yNosGR authored Oct 21, 2024
1 parent a4705d2 commit b8399fc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bin/meshtasticd.service
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
[Unit]
Description=Meshtastic Native Daemon
After=network-online.target
StartLimitInterval=200
StartLimitBurst=5

[Service]
User=root
Group=root
Type=simple
ExecStart=/usr/sbin/meshtasticd
Restart=always
RestartSec=3

[Install]
WantedBy=multi-user.target
WantedBy=multi-user.target

0 comments on commit b8399fc

Please sign in to comment.