declarar nuevos scripts en init.d

dejas el archivo en /etc/init.d , aca lo llamamos «mi-script.sh»

lo haces ejecutable. Sudo chmod +x mi-script.sh

sudo update-rc.d mi-script.sh defaults

 

 


En el header del archivo sh se pega:

#! /bin/sh
### BEGIN INIT INFO
# Provides:          noip2
# Required-Start:    $local_fs $remote_fs $network $syslog $named
# Required-Stop:     $local_fs $remote_fs $network $syslog $named
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Start/stop noip2
### END INIT INFO