View previous topic :: View next topic |
Author |
Message |
shogun_panda Guru
Joined: 30 Jul 2004 Posts: 411 Location: Campobasso or Rome, Molise or Lazio, Italy, Europe, Earth, Solar system, Milk Way, Universe
|
Posted: Sun Jul 17, 2005 5:35 pm Post subject: [TIP] Sintassi abbreviata per gli init-script |
|
|
Spesso mi stufo di dover digitare /etc/init.d/NOME_SERVIZIO AZIONE per poter interagire con gli init-script...
Allora ho pensato di comprimere l'operazione in:
Code: |
$ svc NOME_SERVIZIO AZIONE
$ service NOME_SERVIZIO AZIONE
|
In cui il secondo e' un alias del primo (e a mio avviso faciliterebbe la migrazione da altre distro tipo Fedora)...
Per ottenerlo basta aggiungere in ~/.bashrc o in /etc/bashrc le seguenti righe:
Code: |
svc(){ /etc/init.d/$@; }
alias service='svc'
|
Spero che vi piaccia e di non aver detto cavolate! _________________ Greetings by the Shogun! - Home page
1-"Prima di dare consigli agli altri, sperimentateli su voi stessi..."
2-"In medio stat virtus!" |
|
Back to top |
|
|
X-Drum Advocate
Joined: 24 Aug 2003 Posts: 2517 Location: ('Modica','Trieste','Ferrara') Italy
|
|
Back to top |
|
|
shogun_panda Guru
Joined: 30 Jul 2004 Posts: 411 Location: Campobasso or Rome, Molise or Lazio, Italy, Europe, Earth, Solar system, Milk Way, Universe
|
Posted: Sun Jul 17, 2005 6:08 pm Post subject: |
|
|
X-Drum wrote: | https://forums.gentoo.org/viewtopic-t-182914-highlight-redhat+service.html |
Pardon! Praticamente abbiamo postato la stessa cosa...
Come non detto allora! _________________ Greetings by the Shogun! - Home page
1-"Prima di dare consigli agli altri, sperimentateli su voi stessi..."
2-"In medio stat virtus!" |
|
Back to top |
|
|
|
|
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
|
|