|
|
|
![]() |
|
Strumenti |
![]() |
#21 |
Member
Iscritto dal: Dec 2002
Città: Como
Messaggi: 287
|
Ho installato oggi initng dal ramo experimental di debian, non ho avuto problemi di convivenza con sysvinit e non ho nemmeno dovuto installare agetty. Non ho problemi ma il guadagno in fatto di prestazioni è piuttosto basso matematicamente, altino percentualmente: da 20 s con sysvinit a 15 s con initng.
Comunque è interessante. Ho però qualche domanda: usando initng, tutto il sistema di servizi di debian (i runlevel, gli script /etc/init.d, l'uso di update-rc.d e invoke-rc.d) salta? E come faccio in tal caso a "riscrivermi" l'avvio, selezionando i servizi da avviare? posso solo usare gli script in /etc/initng/daemon, ed eventualmente scrivermene di miei (pescandoli da /etc/init.d) da mettere lì per poi aggiungerli con ngupdate? Grazie... ![]()
__________________
Nove millimetri. Non sono mai più lontano di così. |
![]() |
![]() |
![]() |
#22 |
Senior Member
Iscritto dal: Jan 2004
Città: Gatteo
Messaggi: 2955
|
Sì, puoi fare come hai detto
__________________
And so at last the beast fell and the unbelievers rejoiced. But all was not lost, for from the ash rose a great bird. The bird gazed down upon the unbelievers and cast fire and thunder upon them. For the beast had been reborn with its strength renewed, and the followers of Mammon cowered in horror. |
![]() |
![]() |
![]() |
#23 |
Member
Iscritto dal: Dec 2002
Città: Como
Messaggi: 287
|
Mi potresti fare un esempio?
Ho fatto delle prove ma non va. Ad esempio per aggiungere /etc/init.d/atd cosa scrivo nello script di initng? Grazie.
__________________
Nove millimetri. Non sono mai più lontano di così. |
![]() |
![]() |
![]() |
#24 |
Senior Member
Iscritto dal: Jan 2004
Città: Gatteo
Messaggi: 2955
|
prima postami il contenuto del file atd, che almeno mi faccio un'idea....
__________________
And so at last the beast fell and the unbelievers rejoiced. But all was not lost, for from the ash rose a great bird. The bird gazed down upon the unbelievers and cast fire and thunder upon them. For the beast had been reborn with its strength renewed, and the followers of Mammon cowered in horror. |
![]() |
![]() |
![]() |
#25 |
Member
Iscritto dal: Dec 2002
Città: Como
Messaggi: 287
|
Codice:
#cat /etc/init.d/atd #! /bin/sh # # This file was automatically customized by debmake on Thu, 20 Feb 1997 17:33:12 +0100 # # Written by Miquel van Smoorenburg <miquels@drinkel.ow.org>. # Modified for Debian GNU/Linux by Ian Murdock <imurdock@gnu.ai.mit.edu>. # Modified for Debian by Christoph Lameter <clameter@debian.org>. # Modified for Debian GNU/Linux by Martin Schulze <joey@infodrom.north.de>. PATH=/bin:/usr/bin:/sbin:/usr/sbin DAEMON=/usr/sbin/atd PIDFILE=/var/run/atd.pid # Arguments to atd # ARGS="" test -x $DAEMON || exit 0 case "$1" in start) echo -n "Starting deferred execution scheduler: atd" start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- $ARGS echo "." ;; stop) echo -n "Stopping deferred execution scheduler: atd" start-stop-daemon --stop --quiet --pidfile $PIDFILE --exec $DAEMON echo "." ;; reload) echo "Not implemented." ;; force-reload|restart) sh $0 stop sh $0 start ;; *) echo "Usage: /etc/init.d/atd {start|stop|restart|force-reload|reload}" exit 1 ;; esac exit 0 ![]()
__________________
Nove millimetri. Non sono mai più lontano di così. |
![]() |
![]() |
![]() |
#26 |
Senior Member
Iscritto dal: Jan 2004
Città: Gatteo
Messaggi: 2955
|
Dovrebbe essere qualcosa del genere:
Codice:
service daemon/atd { need = system/initial system/localmount net/lo virtual/networking daemon = /usr/sbin/atd daemon_args = "" pid_file = /var/run/atd.pid }
__________________
And so at last the beast fell and the unbelievers rejoiced. But all was not lost, for from the ash rose a great bird. The bird gazed down upon the unbelievers and cast fire and thunder upon them. For the beast had been reborn with its strength renewed, and the followers of Mammon cowered in horror. |
![]() |
![]() |
![]() |
#28 |
Senior Member
Iscritto dal: Jan 2004
Città: Gatteo
Messaggi: 2955
|
Need sono gli script che devono essere avviati prima (lo start del servizio deve essere completo); use DOVREBBERO essere i demoni che usa, e che devono essere avviati prima (senza che siano però completati). Cmq dovrebbe esserci scritto qualcosa sul sito di initng.
Cmq jimmy è un fenomeno ![]()
__________________
And so at last the beast fell and the unbelievers rejoiced. But all was not lost, for from the ash rose a great bird. The bird gazed down upon the unbelievers and cast fire and thunder upon them. For the beast had been reborn with its strength renewed, and the followers of Mammon cowered in horror. |
![]() |
![]() |
![]() |
#29 |
Member
Iscritto dal: Dec 2002
Città: Como
Messaggi: 287
|
Niente non va... si blocca all'avvio ("default need dep daemon/atd could not be started" o qualcosa di simile).
![]() Come faccio a impostare tty2 come terminale predefinito? O in ogni caso come ottengo un login da subito con initng? EDIT: Okay ho risolto un po' tutto aggiungendo un unico script rc.local con questo contenuto: Codice:
#! /bin/sh invoke-rc.d atd start invoke-rc.d alsa start chvt 2 Codice:
service daemon/rc.local { need = system/initial system/localmount daemon = /etc/init.d/rc.local } ![]()
__________________
Nove millimetri. Non sono mai più lontano di così. Ultima modifica di Frank Castle : 04-09-2005 alle 20:47. |
![]() |
![]() |
![]() |
Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 12:16.