This commit is contained in:
SpudGunMan
2024-09-25 21:58:34 -07:00
parent dd8357453b
commit 75cf43e02a
3 changed files with 18 additions and 0 deletions
+4
View File
@@ -7,8 +7,12 @@ Description=MESH-BOT
After=network.target
[Service]
Type=simple
User=pi
Group=pi
WorkingDirectory=/dir/
ExecStart=/usr/bin/bash python3 mesh_bot.py
ExecStop=/usr/bin/bash pkill -f mesh_bot.py
# Disable Python's buffering of STDOUT and STDERR, so that output from the
# service shows up immediately in systemd's logs