Em 22-02-2010 13:59, Renato Botelho escreveu: > 2010/2/22 Victor<vic...@sartori.eti.br>: > >> Fala galera... >> >> Há alguns dias comecei a usar o FreeBSD.... porém estou tentando >> escrever um script de inicialização.... >> Consegui fazer o script inicializar o serviço, subir junto com o >> sistema, mas não consigo fazer as ações de stop. Quando chamo o script >> seguido de stop, ele me da o seguinte erro: >> >> /usr/local/etc/rc.d/red5 stop >> daemon: process already running, pid: 5679 >> red5 not running? >> >> >> Esse é o meu script >> >> #!/bin/sh >> # >> # PROVIDE: red5 >> # REQUIRE: DAEMON >> # KEYWORD: LOGIN >> >> . /etc/rc.subr >> >> name="red5" >> rcvar=`set_rcvar` >> command="`daemon -cf -p /var/run/red5.pid -u nobody /opt/red5/run-red5.sh`" >> #command_args="> /dev/null 2>&1&" >> >> load_rc_config $name >> >> # >> # DO NOT CHANGE THESE DEFAULT VALUES HERE >> # SET THEM IN THE /etc/rc.conf FILE >> # >> #utility_enable=${utility_enable-"NO"} >> #utility_pidfile=${utility_pidfile-"/var/run/red5.pid"} >> #pidfile="${utility_pidfile}" >> >> run_rc_command "$1 >> >> Já pesquisei bastante, mas não consegui fazer nada que funcione.... >> Alguma dica? >> > http://www.freebsd.org/doc/en/books/porters-handbook/rc-scripts.html > > Obrigado Celso e Renato, vou olhar, qualquer dúvida posto de novo :)
abraços Victor ------------------------- Histórico: http://www.fug.com.br/historico/html/freebsd/ Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd