From e5a60711274792d8e43173ba416f2cbde706ebe6 Mon Sep 17 00:00:00 2001 From: morpheus65535 <5130500+morpheus65535@users.noreply.github.com> Date: Thu, 11 Oct 2018 23:53:08 -0400 Subject: [PATCH] Created systemd service file for Debian/Ubuntu (markdown) --- systemd-service-file-for-Debian-Ubuntu.md | 25 +++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 systemd-service-file-for-Debian-Ubuntu.md diff --git a/systemd-service-file-for-Debian-Ubuntu.md b/systemd-service-file-for-Debian-Ubuntu.md new file mode 100644 index 0000000..6b39e70 --- /dev/null +++ b/systemd-service-file-for-Debian-Ubuntu.md @@ -0,0 +1,25 @@ +This is a systemd service file created by a user (@neuman1812) of Bazarr. It assume you've installed Bazarr in: `/opt/bazarr`. + +You have to create a `bazarr.service` file in `/etc/systemd/system` that would contain the following text: + +``` +[Unit] +Description=bazarr Daemon +After=syslog.target network.target + +[Service] +User=pi (or user name of choice) +Group=pi + +Type=simple +ExecStart=/usr/bin/python /opt/bazarr/bazarr.py +TimeoutStopSec=20 +KillMode=process +Restart=on-failure + +[Install] +WantedBy=multi-user.target +``` + +@neuman1812 says: +> This is tested and working on my Raspberry pi 3, running Debian Stretch and python 2.7.13 \ No newline at end of file