Is there an equivalent of /etc/rc.local?

  • Hello,

    New LE convert here but I've been using Kodi a long time. Is there a facility like /etc/rc.local where I can place commands to be run after boot?

    I'd like to work around a mount issue on boot but I can see how this would be useful in general.

    I am using systemd units to mount NFS shares and one of them does not always come up, simply issuing systemctl restart storage-tvshows.mount does the trick and this would be a quick hack to ensure it's mounted on reboot.

    I've tried adding this to my unit file (one mounts the other doesn't on reboot) to no avail as it doesn't actually start correctly the first time, this would only catch a failure while it was running.

    Code
    [Service]
    Restart=always
    RestartSec=3

    Thanks

    Edited 2 times, last by sadsfae: systemd syntax (June 6, 2017 at 10:59 AM).