As a standard service, you can simply execute:
$SPLUNK_HOME/bin/splunk enable boot-start
as the root user and Splunk will generate an appropriate script into /etc/init.d/ and link it to all the right /etc/rc locations. You can add a
-user username option to generate the script to run as a non-root user.