<div>Davi...  </div><div><br></div>Perfeito, vou fazer os testes aqui e te retorno amanhã....<div><br></div><div>Muito grato pela sua ajuda...  agradeço mesmo!</div><div><br></div><div>Att,</div><div><br></div><div>Armando!<br>
<div><br><br><div class="gmail_quote">2009/6/30 Davi Vercillo C. Garcia <span dir="ltr"><<a href="mailto:davivercillo@gmail.com">davivercillo@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Fala Armando,<br>
<div class="im"><br>
> Davi, como começo a criar esse "shell script" ?<br>
<br>
</div>Primeiro você deve saber quais comandos você quer rodar, tanto para a<br>
inicialização quanto para o desligamento.<br>
Depois de definir isso, você cria um arquivo com nome de<br>
"meuscript.sh" e dê permissão de execução à ele: chmod +x<br>
meuscript.sh.<br>
<br>
O conteúdo desse arquivo deve ser:<br>
<br>
----------------------------------INICIO----------------------------------<br>
#!/bin/sh<br>
#<br>
# meuscript:    Pequeno resumo.<br>
#<br>
# chkconfig:    2345 99 00<br>
# description:  Descrição do script.<br>
#<br>
<br>
case $1 in<br>
        start)<br>
                #coloque os comandos de inicialização aqui.<br>
        ;;<br>
        stop)<br>
                #coloque os comandos de finalização aqui.<br>
        ;;<br>
        restart)<br>
                $0 stop<br>
                $0 start<br>
        ;;<br>
        *)<br>
<br>
        echo $"Usage: $prog {start|stop|restart}"<br>
        exit 3<br>
esac<br>
<br>
----------------------------------FIM--------------------------------<br>
<br>
Depois basta adiciona-lo nos scripts de inicialização e ativa-lo,<br>
executando os seguintes comandos como root:<br>
<br>
#chkconfig --add alfresco<br>
#chkconfig alfresco on<br>
<br>
Se eu não tiver esquecido de nada, tudo dará certo e seu problema<br>
estará resolvido ! =D<br>
<br>
Abraços,<br>
<font color="#888888">--<br>
</font><div><div></div><div class="h5">Davi Vercillo Carneiro Garcia<br>
<a href="http://www.dcc.ufrj.br/~davivercillo" target="_blank">http://www.dcc.ufrj.br/~davivercillo</a><br>
<br>
Universidade Federal do Rio de Janeiro<br>
Departamento de Ciência da Computação<br>
DCC-IM/UFRJ - <a href="http://www.dcc.ufrj.br" target="_blank">http://www.dcc.ufrj.br</a><br>
<br>
/"\<br>
\ /   CAMPANHA DA FITA ASCII - CONTRA MAIL HTML<br>
 X   ASCII RIBBON CAMPAIGN - AGAINST HTML MAIL<br>
/ \<br>
<br>
"Whoever comes is the right people; Whatever happens is the only thing<br>
that could have;<br>
Whenever it starts is the right time; When it's over, it's over !" -<br>
Open Space Philosophy<br>
<br>
"Theory is when you know something, but it doesn't work. Practice is<br>
when something works, but you don't know why.<br>
Programmers combine theory and practice: Nothing works and they don't<br>
know why." - Anon<br>
<br>
</div></div><br>--<br>
Fedora-users-br mailing list<br>
<a href="mailto:Fedora-users-br@redhat.com">Fedora-users-br@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/fedora-users-br" target="_blank">https://www.redhat.com/mailman/listinfo/fedora-users-br</a><br>
<br></blockquote></div><br></div></div>