From daadc9c82de3d70452b65b05b0ca466f211eb5bb Mon Sep 17 00:00:00 2001 From: a Date: Sun, 1 Dec 2024 08:13:27 +0000 Subject: [PATCH] Add systemd template service unit --- umi@.service | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 umi@.service diff --git a/umi@.service b/umi@.service new file mode 100644 index 0000000..d47d04e --- /dev/null +++ b/umi@.service @@ -0,0 +1,12 @@ +[Unit] +Description=Discord bot for logging VC joins and playing music +After=network.target + +[Service] +Restart=on-failure +User=discord +WorkingDirectory=/srv/discord/%I +ExecStart=/srv/discord/.venv/bin/python -u app.py + +[Install] +WantedBy=multi-user.target