Start Script at Boot Up on Raspberry Pi

bootupRaspberry Pisystemd


If you are going to use a network service you may want need to change the [Unit] directives to look something like the NGinx service. See this article for details on how a network service works:

Notice the service is only started After the ( event is completed. This is the important distinction.

Description=A high performance web server and a reverse proxy server
ExecStartPre=/usr/sbin/nginx -t -q -g 'daemon on; master_process on;'
ExecStart=/usr/sbin/nginx -g 'daemon on; master_process on;'
ExecReload=/usr/sbin/nginx -g 'daemon on; master_process on;' -s reload
ExecStop=/usr/sbin/nginx -s quit