init (rc.local)
Esse é meu rc.local que utilizo há anos no Slackware. Deixo aqui para quem quiser usar e adaptar.
#!/bin/sh
#
# /etc/rc.d/rc.local: Local system initialization script.
#
# Put any local startup commands in here. Also, if you have
# anything that needs to be run at shutdown time you can
# make an /etc/rc.d/rc.local_shutdown script and put those
# commands in there.
# Os serviços são colocados na variável RC.
# Especifique aqui o nome do serviço sem o "rc."
# Esse são os meus serviços locais que uso atualmente
RC=(postgresql vboxdrv)
RC_DIR=$(dirname $0)
for ((i = 0; i <= ${#RC[@]} - 1; i += 1)); do
if [ -x ${RC_DIR}/rc.${RC[i]} ]; then
$RC_DIR/rc.${RC[i]} start
fi
done