Files
meshing-around/mesh_bot.service
David Bures 467f172fde Merge remote-tracking branch 'remotes/upstream/main' into tests
# Conflicts:
#	locationdata.py
2024-06-26 11:39:54 -07:00

21 lines
484 B
Desktop File

# /etc/systemd/system/meshbot.service
# sudo systemctl daemon-reload
# sudo systemctl start meshbot.service
[Unit]
Description=MESH-BOT
After=network.target
[Service]
ExecStart=/usr/bin/python /usr/local/meshing-around/mesh_bot.py
# Disable Python's buffering of STDOUT and STDERR, so that output from the
# service shows up immediately in systemd's logs
Environment=PYTHONUNBUFFERED=1
Restart=on-failure
Type=notify #try simple if any problems
[Install]
WantedBy=default.target