From c529969275c58107c0bd36249f5592d499e5c713 Mon Sep 17 00:00:00 2001 From: MKzero Date: Thu, 5 Nov 2015 11:59:03 +0100 Subject: [PATCH] Added systemd unit file --- contrib/bytebot.service | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 contrib/bytebot.service diff --git a/contrib/bytebot.service b/contrib/bytebot.service new file mode 100644 index 0000000..1a88148 --- /dev/null +++ b/contrib/bytebot.service @@ -0,0 +1,16 @@ +[Unit] +Description=Bytespeicher IRC botno bytebot.service +After=network-online.target +After=syslog.service +Requires=network-online.target +Requires=syslog.service + +[Service] +User=bytebot +Group=bytebot +Restart=all +ExecStart=/home/bytebot/Bytebot/env/bin/python /home/bytebot/Bytebot/bytebot.py +MemoryLimit=256M + +[Install] +WantedBy=multi-user.target