From f0e930e8316c8b99dd7c05e5fdb5c731a1ba81c1 Mon Sep 17 00:00:00 2001 From: "Edgar P. Burkhart" Date: Fri, 14 Jun 2024 14:16:54 +0200 Subject: [PATCH] Add systemd service --- botbotbot.service | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 botbotbot.service diff --git a/botbotbot.service b/botbotbot.service new file mode 100644 index 0000000..343c6a3 --- /dev/null +++ b/botbotbot.service @@ -0,0 +1,13 @@ +# /etc/systemd/system/botbotbot.service +[Unit] +Description=Botbotbot +After=multi-user.target + +[Service] +Type=simple +User=edpibu +WorkingDirectory=/data/code/botbotbot.py +ExecStart=/data/code/botbotbot.py/env/bin/python -u -m botbotbot + +[Install] +WantedBy=multi-user.target