Caros Bohrer e Arthur, realmente o update-rc.d cria links nos diretórios que identificam os runlevels. Apenas é a maneira ubuntu-like de fazer a coisa.
Inserir os links manualmente é aproveitar a estrutura do init, processo padrão na maioria das distros. O Ubuntu começou a mudar para outra estrutura, o upstart, mas ainda mantém os scripts do init. O update-rc.dalém de criar os links, gera também os scripts do upstart, essa é a diferença. Aliás, é uma das coisas que está sendo pedida no Ubuntu brainstorm: a utilização real do upstart (http://brainstorm.ubuntu.com/idea/35/) 2008/3/25 Bohrer <[EMAIL PROTECTED]>: > Caro Arthur, boa noite.. > > Considerando que o update-rc.d faz exatamente a mesma coisa [ cria links > simbólicos dentro das pastas que identificam cada um dos runlevels do > sistema ] trocamos 6 por meia-dúzia.. > > As formas de fazer são duas, que na prática representam resultados iguais: > links simbólicos criados dentro de uma pasta que farão com que os scrips > sejam inicializados sempre que a máquina 'entrar' no runlevel em questão.. > > Enfim.. existem as duas opções que resultam na mesma coisa.. no uso > efetivo, > cabe a cada um escolher a forma que mais lhe agradar.. > > Um abraço > > Bohrer > > > 2008/3/25 Arthur Furlan <[EMAIL PROTECTED]>: > > > -----BEGIN PGP SIGNED MESSAGE----- > > Hash: SHA1 > > > > Bohrer wrote: > > > Senhores > > > > > > Apenas complementando a resposta do Sérgio, sim, esta é a maneira mais > > > 'limpa' de se fazer isso.. > > > > Usando o update-rc.d não seria mais limpo? Em geral eu não gosto dessas > > soluções onde você tem de criar as coisas na mão... > > > > $ update-rc.d <seu-script> defaults > > > > > > - -- > > Atenciosamente, > > > > Arthur Furlan > > [EMAIL PROTECTED] > > > > > > > > Um abraço > > > > > > Bohrer > > > > > > > > > > > > > > > 2008/3/25 Sergio Pereira <[EMAIL PROTECTED]>: > > > > > >> Márcio Erli de Paula escreveu: > > >>> Caros, > > >>> Preciso sempre que meu Linux for iniciado, ele executar um script de > > >>> firewall que tenho. > > >>> O mesmo está dentro da pasta /etc/firewall/firewall.sh. > > >>> Estou usando ubuntu 7.10 > > >>> > > >>> Grato, > > >>> Marcio. > > >>> > > >>> > > >> Márcio, não sei se é a maneira mais "limpa" para se fazer isso mas > > >> scripts que quero que sejam executados na inicialização eu deixo no > > >> /etc/init.d/ e crio link simbólico no nível de inicialização (p. ex., > > >> /etc/rc2.d/). > > >> > > >> Sérgio > > >> > > >> -- > > >> Linux User #426387 / Ubuntu User #13964 > > >> Linux: A liberdade da escolha. A escolha da liberdade. > > >> The freedom of the choice. The choice of the freedom. > > >> -----BEGIN PGP SIGNATURE----- > > >> Version: GnuPG v1.4.2.2 (GNU/Linux) > > >> > > >> iD8DBQFF9vhuJ+YDTomMwA8RAvSAAJoDwkzHJK3P98vEDx5pJxeyT3xyzgCg22/u > > >> W/MTldaxqdeNLjlWF49wpig= > > >> =MVB7 > > >> -----END PGP SIGNATURE----- > > >> > > >> > > >> > > >> -- > > >> Interessado em aprender mais sobre o Ubuntu em português? > > >> http://wiki.ubuntu-br.org/ComeceAqui - > > >> ubuntu-br mailing list > > >> ubuntu-br@lists.ubuntu.com > > >> https://lists.ubuntu.com/mailman/listinfo/ubuntu-br > > >> > > > > > > > > > > > -----BEGIN PGP SIGNATURE----- > > Version: GnuPG v1.4.6 (GNU/Linux) > > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > > > iD8DBQFH6YalHiIxAB175NwRAiQcAKCFT5yup535FKmCXeMKNq4qnLuAkwCgvXY6 > > nOBDgjgZJzCGrlFdJPjxMV4= > > =hAqI > > -----END PGP SIGNATURE----- > > > > -- > > Interessado em aprender mais sobre o Ubuntu em português? > > http://wiki.ubuntu-br.org/ComeceAqui - > > ubuntu-br mailing list > > ubuntu-br@lists.ubuntu.com > > https://lists.ubuntu.com/mailman/listinfo/ubuntu-br > > > > > > -- > Fernando Bohrer > Linux Registered User # 431341 > Ubuntu Registered User # 17430 > Linux Professional Institute Certification Level 1 - [LPIC-1] > -- > Interessado em aprender mais sobre o Ubuntu em português? > http://wiki.ubuntu-br.org/ComeceAqui - > ubuntu-br mailing list > ubuntu-br@lists.ubuntu.com > https://lists.ubuntu.com/mailman/listinfo/ubuntu-br > -- Humberto Xis [EMAIL PROTECTED] [EMAIL PROTECTED] http://xisberto.blogspot.com http://ostelematicos.blogspot.com "Sur la tuta tero estis unu lingvo kaj unu parlomaniero." - Gn 11,1 -- Interessado em aprender mais sobre o Ubuntu em português? http://wiki.ubuntu-br.org/ComeceAqui - ubuntu-br mailing list ubuntu-br@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-br