View previous topic :: View next topic |
Author |
Message |
wildancer Guru
Joined: 02 Apr 2004 Posts: 472
|
Posted: Fri Apr 16, 2004 12:12 pm Post subject: Lanciare script al boot [Risolto] |
|
|
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 |
|
|
solka Apprentice
Joined: 25 Jun 2003 Posts: 287 Location: Torino - ITA
|
Posted: Fri Apr 16, 2004 12:18 pm Post subject: |
|
|
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 |
|
|
shev Bodhisattva
Joined: 03 Feb 2003 Posts: 4084 Location: Italy
|
Posted: Fri Apr 16, 2004 12:19 pm Post subject: |
|
|
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 |
|
|
X-Drum Advocate
Joined: 24 Aug 2003 Posts: 2517 Location: ('Modica','Trieste','Ferrara') Italy
|
Posted: Sat Apr 17, 2004 2:58 pm Post subject: |
|
|
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 )
cmq funziona lo script local è stato apposta concepito per questi scopi _________________ "...There are two sort of lies, lies and benchmarks..." |
|
Back to top |
|
|
Neomubumba Tux's lil' helper
Joined: 17 Feb 2004 Posts: 136 Location: Milano
|
Posted: Sat Apr 17, 2004 5:22 pm Post subject: |
|
|
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 |
|
|
X-Drum Advocate
Joined: 24 Aug 2003 Posts: 2517 Location: ('Modica','Trieste','Ferrara') Italy
|
Posted: Sun Apr 18, 2004 10:42 am Post subject: |
|
|
Quote: | Scusate per l'OT ma l'ultima firma dei NOFX non è per caso
How did the cat get so fat? |
Caspita hai ragione!!!!
guarda mi vergogno come un ladro!!!!! ho sbagliato ad immetterla (errore di digitazione)!!!!!!!
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 |
|
|
|