Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[conf] /etc/init.d/xxx e boot
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
Marculin
Guru
Guru


Joined: 24 Feb 2004
Posts: 376

PostPosted: Sun Jul 11, 2004 11:26 am    Post subject: [conf] /etc/init.d/xxx e boot Reply with quote

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
View user's profile Send private message
Cagnulein
l33t
l33t


Joined: 18 Sep 2003
Posts: 861
Location: Modena, Italy

PostPosted: Sun Jul 11, 2004 11:31 am    Post subject: Reply with quote

edita lo script

e nella funzione

depend()
{
}

falla diventare
depend()
{
after syslog-ng
}

chiaramente tutto questo nello script di pcmcia :)
Back to top
View user's profile Send private message
shanghai
Guru
Guru


Joined: 08 Feb 2004
Posts: 493
Location: Roma, Italia, GeekLand

PostPosted: Sun Jul 11, 2004 11:35 am    Post subject: Reply with quote

...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
View user's profile Send private message
Marculin
Guru
Guru


Joined: 24 Feb 2004
Posts: 376

PostPosted: Sun Jul 11, 2004 11:47 am    Post subject: Reply with quote

Non mi ero ricordato di cercare li..avevo cercato sul forum dato che mi ricordavo che qualcuno l'aveva scritto :oops: ...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
View user's profile Send private message
shanghai
Guru
Guru


Joined: 08 Feb 2004
Posts: 493
Location: Roma, Italia, GeekLand

PostPosted: Sun Jul 11, 2004 11:51 am    Post subject: Reply with quote

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
View user's profile Send private message
Marculin
Guru
Guru


Joined: 24 Feb 2004
Posts: 376

PostPosted: Mon Jul 12, 2004 8:12 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum