Debian jessieでinitシステムがSystemdが採用されていますが、その流れでRaspbian JessieでもSystemdが使えるようになっていました。 ということで、自動起動の設定をしてみたいと思います。 serviceファイルの作成 下記のような「xx.service」ファイルを/etc/systemd/system配下におきます。 (下記の例では「moviestream.service」とします。) [Unit] Description = Movie Streaming [Service] ExecStart=/home/pi/systemd/mjpgstreamer.sh Restart=always Type=simple [Install] WantedBy=multi-user.target ※配置先は/usr/lib/systemd/system以下でも