mirror of
https://github.com/morpheus65535/bazarr
synced 2024-12-22 15:54:26 +00:00
Created systemd service file for Debian/Ubuntu (markdown)
parent
037fe998f5
commit
e5a6071127
1 changed files with 25 additions and 0 deletions
25
systemd-service-file-for-Debian-Ubuntu.md
Normal file
25
systemd-service-file-for-Debian-Ubuntu.md
Normal file
|
@ -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
|
Loading…
Reference in a new issue