Enviado em 04/05/2006 - 14:10h
No Slackware eu teria que adicionar o seguinte scrip para dar start no mesmo em /etc/rc.d/inet2
if [ -x /etc/rc.d/rc.pgsql ]; then
echo "Iniciando o PostgreSQL: /usr/local/pgsql"
/etc/rc.d/rc.pgsql start
fi
e para o Stop no arquivo /etc/rc.d/rc.6
if [ -x /etc/rc.d/rc.pgsql ]; then
echo "Finalizando o PostgreSQL: /usr/local/pgsql"
/etc/rc.d/rc.pgsql stop
fi
onde seria no ubuntu os arquivos onde inicializamos e paramos os serviços ?
pelo que vi é no arquivo /etc/init.d/rc, no inicio ele diz:
This file is responsible for starting/stopping services when the runlevel changes.
Certo, mas como eu encaixaria o Postgree neste arquivo ?
Obrigado pessoal, no aguardo
if [ -x /etc/rc.d/rc.pgsql ]; then
echo "Iniciando o PostgreSQL: /usr/local/pgsql"
/etc/rc.d/rc.pgsql start
fi
e para o Stop no arquivo /etc/rc.d/rc.6
if [ -x /etc/rc.d/rc.pgsql ]; then
echo "Finalizando o PostgreSQL: /usr/local/pgsql"
/etc/rc.d/rc.pgsql stop
fi
onde seria no ubuntu os arquivos onde inicializamos e paramos os serviços ?
pelo que vi é no arquivo /etc/init.d/rc, no inicio ele diz:
This file is responsible for starting/stopping services when the runlevel changes.
Certo, mas como eu encaixaria o Postgree neste arquivo ?
Obrigado pessoal, no aguardo