Files
meshing-around/etc/mesh_bot.tmp
2024-07-10 15:45:57 -07:00

21 lines
468 B
Plaintext

# /etc/systemd/system/mesh_bot.service
# sudo systemctl daemon-reload
# sudo systemctl start mesh_bot.service
[Unit]
Description=MESH-BOT
After=network.target
[Service]
ExecStart=/usr/bin/python /dir/launch.sh mesh
# 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