[ubuntu-ar] Ayuda!! ideal para sysadmin
Mariano Absatz
el.baby at gmail.com
Mon Jul 13 14:21:28 BST 2009
On Mon, Jul 13, 2009 at 00:22, Joaquin Cañete <joakinc at gmail.com> wrote:
> visualizar donde anda el servicio
> chkconfig --list | grep squid
> squid 0:off 1:off 2:on 3:on 4:on 5:on 6:off
> chkconfig --level <levels> <name> <on|off|reset>
> para que inicie en 2345
> chkconfig --level 2345 squid on
> para que pare 016
> chkconfig --level 016 squid off
>
Me suena que es así como dice Joaquín... aunque el chkconfig es "redhatoso"
(recién ahora que chequeo veo que hay un paquete chkconfig en
debian/ubuntu).
La forma "debianosa" (o ubuntuosa) es con update-rc.d:
Con update-rc.d, si tenés el servicio ya configurado en algún runlevel,
entonces primero tenés que borrar lo que tenés:
$ *sudo update-rc.d -f squid remove*
y después lo configurás como querés
$ *sudo update-rc.d -f squid start 90 2 3 4 5 . stop 10 0 1 6 .*
--
Mariano Absatz - El Baby
www.clueless.com.ar
#########################
"I told my psychiatrist that everyone hates me. He said I was being
ridiculous - everyone
has...<http://quotesdaddy.com/quote/759555/rodney-dangerfield/i-told-my-psychiatrist-that-everyone-hates-me-he-said>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/archives/ubuntu-ar/attachments/20090713/ac43c6f8/attachment.htm
More information about the Ubuntu-ar
mailing list