Files
meshing-around/etc/mesh_bot.tmp
SpudGunMan bfa8aa0a86 enhance
fix some issues raised https://github.com/SpudGunMan/meshing-around/issues/37 thankyou!
2024-08-10 12:37:22 -07:00

22 lines
489 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]
WorkingDirectory=/dir/
ExecStart=/usr/bin/bash /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