Improve process priority setting for meshtasticd service override

This commit is contained in:
nagumii 2025-01-20 23:03:03 +02:00
parent c27760d4ec
commit ce7b9607af

View file

@ -1,7 +1,7 @@
[Service]
ExecStart=
ExecStart=/bin/sh -c '/usr/sbin/meshtasticd -h $(sed -n "/Serial/ s/^.*: \(.*\)$/\U\1/p" /proc/cpuinfo | bc | tail -c 9)'
ExecStartPost=/bin/sh -c 'renice -n -20 -p $(pgrep meshtasticd)'
Nice=-20
[Unit]
After=rc-local.service