# \[Solved\] Executing python command at startup. Putting it on rc.local does not work anymore

**URL:** <https://dietpi.com/forum/t/solved-executing-python-command-at-startup-putting-it-on-rc-local-does-not-work-anymore/2910>\
**Category:** Troubleshooting\
**Created:** [2 February 2019 20:14 UTC](https://dietpi.com/forum/t/solved-executing-python-command-at-startup-putting-it-on-rc-local-does-not-work-anymore/2910 "2019-02-02T20:14:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Garret](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/g/ecc23a/32.png) [@Garret](https://dietpi.com/forum/u/Garret)\
**Post date:** [2 February 2019 20:14 UTC](https://dietpi.com/forum/t/solved-executing-python-command-at-startup-putting-it-on-rc-local-does-not-work-anymore/2910/1 "2019-02-02T20:14:57Z")

</div>

I was executing the command to launch the application Bazarr on startup by adding it before the line exit 0 in /etc/rc.local.  
However, since some time I noticed that Bazarr does not launch anymore and have to start it manually. Do you have some advice on how to fix this issue?

This has been my /etc/rc.local:

```nohighlight
#!/bin/sh -e
#
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to disable this script please use systemd to control the service:
# systemctl disable rc-local.service
#
# By default this script does nothing.

python /mnt/dietpi_userdata/bazarr/bazarr.py &
exit 0

```

I also just tried to follow this guide [https://github.com/morpheus65535/bazarr/wiki/systemd-service-file-for-Debian-Ubuntu](https://github.com/morpheus65535/bazarr/wiki/systemd-service-file-for-Debian-Ubuntu) but did not work.

This is my /etc/systemd/system/bazarr.service

```nohighlight
[Unit]
Description=bazarr Daemon
After=syslog.target network.target

[Service]
User=root
Group=root

Type=simple
ExecStart=/usr/bin/python /mnt/dietpi_userdata/bazarr/bazarr.py
TimeoutStopSec=20
KillMode=process
Restart=on-failure

[Install]
WantedBy=multi-user.target

```

But if I give the command _systemctl start bazarr_ I can see that bazarr actually starts…

**EDIT:** I solved. I had to give the command _systemctl enable bazarr_ to have the service starts at boot.
