From 52a367688735058e3e5b0a7d1b39b5873600751c Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Thu, 20 Jun 2024 11:16:15 -0700 Subject: [PATCH] Create mesh-bot.service --- mesh-bot.service | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 mesh-bot.service diff --git a/mesh-bot.service b/mesh-bot.service new file mode 100644 index 0000000..6586de6 --- /dev/null +++ b/mesh-bot.service @@ -0,0 +1,16 @@ + +[Unit] +Description=MESH-BOT + +[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 + +[Install] +WantedBy=default.target