From d3ae863c4556f2d548afe3f7d19cdf5bb637771b Mon Sep 17 00:00:00 2001 From: l3uddz Date: Sat, 10 Mar 2018 09:18:57 +0000 Subject: [PATCH] make notifiations verbose by default. added systemd service file for automatic mode. --- misc/config.py | 2 +- systemd/traktarr.service | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 systemd/traktarr.service diff --git a/misc/config.py b/misc/config.py index 785e701..0525488 100644 --- a/misc/config.py +++ b/misc/config.py @@ -66,7 +66,7 @@ base_config = { } }, 'notifications': { - 'verbose': False, + 'verbose': True, 'my slack': { 'service': 'slack', 'webhook_url': '' diff --git a/systemd/traktarr.service b/systemd/traktarr.service new file mode 100644 index 0000000..43fb188 --- /dev/null +++ b/systemd/traktarr.service @@ -0,0 +1,17 @@ +# /etc/systemd/system/traktarr.service + +[Unit] +Description=traktarr +After=network-online.target unionfs.service + +[Service] +User=seed +Group=seed +Type=simple +WorkingDirectory=/opt/traktarr/ +ExecStart=/usr/bin/python3 /opt/traktarr/traktarr.py run +Restart=always +RestartSec=10 + +[Install] +WantedBy=default.target