View previous topic :: View next topic |
Author |
Message |
Marculin Guru


Joined: 24 Feb 2004 Posts: 376
|
Posted: Sun Jul 11, 2004 11:26 am Post subject: [conf] /etc/init.d/xxx e boot |
|
|
Se non erro una volta qualcuno aveva detto come fare per avviare un servizio prima di un altro ma cercando non l'ho ritrovato...
vorrei avviare syslog-ng prima di pcmcia....cosa devo già modificare?grazie _________________ Non capisco perchè continuavo ad avere cosi paura della shell.....è cosi bella  |
|
Back to top |
|
 |
Cagnulein l33t


Joined: 18 Sep 2003 Posts: 861 Location: Modena, Italy
|
Posted: Sun Jul 11, 2004 11:31 am Post subject: |
|
|
edita lo script
e nella funzione
depend()
{
}
falla diventare
depend()
{
after syslog-ng
}
chiaramente tutto questo nello script di pcmcia  |
|
Back to top |
|
 |
shanghai Guru


Joined: 08 Feb 2004 Posts: 493 Location: Roma, Italia, GeekLand
|
Posted: Sun Jul 11, 2004 11:35 am Post subject: |
|
|
...manuale sugli rc-script su gentoo.org
Quote: | Dependencies
There are two dependencies you can define: use and need. As we have mentioned before, the need dependency is more strict than the use dependency. Following this dependency type you enter the service you depend on, or the virtual dependency.
A virtual dependency is a dependency that a service provides, but that is not provided solely by that service. Your init script can depend on a system logger, but there are many system loggers available (metalogd, syslog-ng, sysklogd, ...). As you cannot need every single one of them (no sensible system has all these system loggers installed and running) we made sure that all these services provide a virtual dependency.
Let us take a look at the dependency information for the postfix service.
Code Listing 17: Dependency information for Postfix
depend() {
need net
use logger dns
provide mta
} |
Non è cattiveria, cercate bene prima di postare...
----EDIT----
Il manuale lo trovate quì _________________ Il sonno della ragione genera mostri. |
|
Back to top |
|
 |
Marculin Guru


Joined: 24 Feb 2004 Posts: 376
|
Posted: Sun Jul 11, 2004 11:47 am Post subject: |
|
|
Non mi ero ricordato di cercare li..avevo cercato sul forum dato che mi ricordavo che qualcuno l'aveva scritto ...grazie shanghai
cmq non mi funziona....ho messo
Code: | depend()
{
after syslog-ng
}
|
in /etc/init.d/pcmcia ma parte sempre prima pcmcia e poi syslog-ng
ho anche provato con before ma nada
In pcmcia però non c'era il depend e l'ho messo io... _________________ Non capisco perchè continuavo ad avere cosi paura della shell.....è cosi bella  |
|
Back to top |
|
 |
shanghai Guru


Joined: 08 Feb 2004 Posts: 493 Location: Roma, Italia, GeekLand
|
Posted: Sun Jul 11, 2004 11:51 am Post subject: |
|
|
Non è che hai opzioni particolari attivate tipo RC_PARALLEL_STARTUP?
Oppure hai messo pcmcia in un runlevel necessariamente precedente (tipo: pcmcia in boot e syslog-ng in default)... _________________ Il sonno della ragione genera mostri. |
|
Back to top |
|
 |
Marculin Guru


Joined: 24 Feb 2004 Posts: 376
|
Posted: Mon Jul 12, 2004 8:12 am Post subject: |
|
|
grazie....era colpa che erano in 2 runlevel diversi..l'avevo pensato ma avevi già risposto
Dite che crea problemi mettere syslog-ng nel boot dato che nella guida lo mette nel default?grazie _________________ Non capisco perchè continuavo ad avere cosi paura della shell.....è cosi bella  |
|
Back to top |
|
 |
|