Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Lanciare script al boot [Risolto]
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
wildancer
Guru
Guru


Joined: 02 Apr 2004
Posts: 472

PostPosted: Fri Apr 16, 2004 12:12 pm    Post subject: Lanciare script al boot [Risolto] Reply with quote

Salve ragazzi, ho un problemino... Volevo far si che al boot venissero effettuate delle operazioni; ho creato uno script bash e sono andato a cercare il vecchio caro rc.local, ma ovviamente non esiste inquanto gentoo usa un diverso init...
Come faccio a lanciare automaticamente script bash in fase di boot, e magari a far si che risultino lanciati da nobody (Per evitare problemi di sicurezza..) ??? :?:


Last edited by wildancer on Sun Nov 07, 2004 9:02 pm; edited 1 time in total
Back to top
View user's profile Send private message
solka
Apprentice
Apprentice


Joined: 25 Jun 2003
Posts: 287
Location: Torino - ITA

PostPosted: Fri Apr 16, 2004 12:18 pm    Post subject: Reply with quote

Code:

/etc/conf.d/local.start


:)
_________________
"The only reason of the man's sadness
is that he can't stay peacefully in his room."

Blaise Pascal
Back to top
View user's profile Send private message
shev
Bodhisattva
Bodhisattva


Joined: 03 Feb 2003
Posts: 4084
Location: Italy

PostPosted: Fri Apr 16, 2004 12:19 pm    Post subject: Reply with quote

Il metodo più pulito è leggere la relativa guida che trovi nella doc gentoo, per l'esattezza la sezione sugli init scripts dell'handbook o il caro vecchio rc-script howto. Così ti fai le conoscenze necessarie su gentoo e il suo sistema d'avvio :)
_________________
Se per vivere ti dicono "siediti e stai zitto" tu alzati e muori combattendo
Back to top
View user's profile Send private message
X-Drum
Advocate
Advocate


Joined: 24 Aug 2003
Posts: 2517
Location: ('Modica','Trieste','Ferrara') Italy

PostPosted: Sat Apr 17, 2004 2:58 pm    Post subject: Reply with quote

per operazioni di routine "semplici" come pulire la tmp ad esempio,
puoi mettere lo script da te creato in cron!
/etc/init.d/local
sarebbe piu' indicato per roba che cmq non riesci a gestire con script di init esistenti o per mezzo di cron (è il mio parere, non è mica vietato :wink: )
cmq funziona lo script local è stato apposta concepito per questi scopi
_________________
"...There are two sort of lies, lies and benchmarks..."
Back to top
View user's profile Send private message
Neomubumba
Tux's lil' helper
Tux's lil' helper


Joined: 17 Feb 2004
Posts: 136
Location: Milano

PostPosted: Sat Apr 17, 2004 5:22 pm    Post subject: Reply with quote

Scusate per l'OT ma l'ultima firma dei NOFX non è per caso
How did the cat get so fat?

Scusa ancora
_________________
Some of those that were forces, are the sames that bore crosses,
Some of those that were crosses, are the sames that are forces
Back to top
View user's profile Send private message
X-Drum
Advocate
Advocate


Joined: 24 Aug 2003
Posts: 2517
Location: ('Modica','Trieste','Ferrara') Italy

PostPosted: Sun Apr 18, 2004 10:42 am    Post subject: Reply with quote

Quote:
Scusate per l'OT ma l'ultima firma dei NOFX non è per caso
How did the cat get so fat?


Caspita 8O hai ragione!!!!
guarda mi vergogno come un ladro!!!!! ho sbagliato ad immetterla (errore di digitazione)!!!!!!! :oops:

grazie per avermelo fatto notare

(chiedo anche io scusa per l'OT a tutti)
_________________
"...There are two sort of lies, lies and benchmarks..."
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