# Custom autostart script not working

**URL:** https://dietpi.com/forum/t/custom-autostart-script-not-working/1960
**Category:** Troubleshooting
**Created:** [12 February 2018 13:05 UTC](https://dietpi.com/forum/t/custom-autostart-script-not-working/1960 "2018-02-12T13:05:47Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![Fourdee](https://dietpi.com/forum/user_avatar/dietpi.com/fourdee/32/11_2.png) [@Fourdee](https://dietpi.com/forum/u/Fourdee)
#### Post date: [13 February 2018 16:02 UTC](https://dietpi.com/forum/t/custom-autostart-script-not-working/1960/6 "2018-02-13T16:02:22Z")

</div>

Confirmed with Kodi, I tried a few methods with no success, doesnt seem to like being launched under bash with systemD.  
Needs further investigations, will need to pick this up at a later date.

Simple solution for now is using your hack ([http://dietpi.com/phpbb/viewtopic.php?f=11&t=2832&p=10900#p10866](http://dietpi.com/phpbb/viewtopic.php?f=11&t=2832&p=10900#p10866)) and selecting Kodi as autostart option.  
Just bear in mind, updating DietPi will revert your changes (replaced with latest scripts), so you’ll need to re-add it back in.

---

_[View the full topic](https://dietpi.com/forum/t/custom-autostart-script-not-working/1960)._
