Add a program to autostart

Having issues with your DietPi installation, or, found a bug? Post it here.
User avatar
Joulinar
Posts: 2025
Joined: Sat Nov 16, 2019 12:49 am

Re: Add a program to autostart

Post by Joulinar »

To which directory you installed bazarr?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
klingsor
Posts: 5
Joined: Mon Dec 30, 2019 7:53 pm

Re: Add a program to autostart

Post by klingsor »

johnvick wrote: Fri Jan 10, 2020 7:29 pm What does # systemctl status bazarr.service say?
This is my systemctl status bazarr.service

Code: Select all

bazarr.service - bazarr Daemon
  Loaded: error (Reason: Invalid argument)
  Active: inactive (dead)
I don't know what is the Invalid argument.
In your systemd script put the full path to python3.8.
I think that this is the full path /usr/local/bin/python, I follow this instructions for the instalation of python 3.8:
https://installvirtual.com/how-to-insta ... -raspbian/

Joulinar wrote: Fri Jan 10, 2020 8:03 pm To which directory you installed bazarr?
The path is /opt/bazarr/bazarr.py.

Thanks for all.
User avatar
Joulinar
Posts: 2025
Joined: Sat Nov 16, 2019 12:49 am

Re: Add a program to autostart

Post by Joulinar »

Hi,

somehow your config file for the service looks different than the file described on the Bazarr install guide. You are missing some lines unter [Service]

Code: Select all

[Unit]
Description=Bazarr Daemon
After=syslog.target network.target
# After=syslog.target network.target sonarr.service radarr.service

[Service]
WorkingDirectory=/opt/bazarr/
User=your_user(username of your choice)
Group=your_group(group of your choice)
UMask=0002
Restart=on-failure
RestartSec=5
Type=simple
ExecStart=/usr/bin/python /opt/bazarr/bazarr.py
KillSignal=SIGINT
TimeoutStopSec=20
SyslogIdentifier=bazarr
ExecStartPre=/bin/sleep 30

[Install]
WantedBy=multi-user.target
To check which python you are running, you can type the following to command line

Code: Select all

which python
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply