Auto-run a script on start-up/boot on a Raspberry Pi using systemd

Big thanks to Matt Hawkins for this one – I needed to use it this morning!

Matt Hawkins has documented the new way of getting boot-time scripts to run. On the Jessie version of Raspbian, instead of using /etc/rc.local like you used to on Wheezy, you now have to use something called ‘systemd’. Read how to do it here.

3 comments for “Auto-run a script on start-up/boot on a Raspberry Pi using systemd

  1. Weird… I used init.d and it worked for me… (needed to mount 2tb drive before starting samba… modified samba script to do the mount (as usb drives are detected after the initial file mount), and it worked ok for me…

  2. Are the usbs drive now mounted automatically?

    I would have liked some documention about the new changes.

    There are other issues relating to the positioning of the www directory – which cause me problems.

    Is there anything elese one needs to know??

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.