From 185006df03e3a2c384fe321a1edd5a8e4e9b4cd4 Mon Sep 17 00:00:00 2001 From: MKzero Date: Thu, 5 Nov 2015 11:58:52 +0100 Subject: [PATCH 1/2] Updated requirements to contain (hopefully) all packages and minimum tested versions --- contrib/requirements.txt | 31 +++++++++++++++++++++++-------- 1 file changed, 23 insertions(+), 8 deletions(-) diff --git a/contrib/requirements.txt b/contrib/requirements.txt index 075a862..7127fea 100644 --- a/contrib/requirements.txt +++ b/contrib/requirements.txt @@ -1,8 +1,23 @@ -Twisted -beautifulsoup4 -feedparser -pyopenssl -service_identity -clarifai -icalendar -pillow +Pillow>=3.0.0 +Twisted>=15.4.0 +argparse>=1.2.1 +beautifulsoup4>=4.4.1 +cffi>=1.3.0 +characteristic>=14.3.0 +clarifai>=0.2 +cryptography>=1.1 +enum34>=1.0.4 +feedparser>=5.2.1 +icalendar>=3.9.1 +idna>=2.0 +ipaddress>=1.0.14 +pyOpenSSL>=0.15.1 +pyasn1>=0.1.9 +pyasn1-modules>=0.0.8 +pycparser>=2.14 +python-dateutil>=2.4.2 +pytz>=2015.7 +service-identity>=14.0.0 +six>=1.10.0 +wsgiref>=0.1.2 +zope.interface>=4.1.3 From c529969275c58107c0bd36249f5592d499e5c713 Mon Sep 17 00:00:00 2001 From: MKzero Date: Thu, 5 Nov 2015 11:59:03 +0100 Subject: [PATCH 2/2] 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