Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[TIP] Sintassi abbreviata per gli init-script
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) Risorse italiane (documentazione e tools)
View previous topic :: View next topic  
Author Message
shogun_panda
Guru
Guru


Joined: 30 Jul 2004
Posts: 411
Location: Campobasso or Rome, Molise or Lazio, Italy, Europe, Earth, Solar system, Milk Way, Universe

PostPosted: Sun Jul 17, 2005 5:35 pm    Post subject: [TIP] Sintassi abbreviata per gli init-script Reply with quote

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! :D
_________________
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
View user's profile Send private message
X-Drum
Advocate
Advocate


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

PostPosted: Sun Jul 17, 2005 5:52 pm    Post subject: Reply with quote

http://forums.gentoo.org/viewtopic-t-182914-highlight-redhat+service.html
_________________
"...There are two sort of lies, lies and benchmarks..."
Back to top
View user's profile Send private message
shogun_panda
Guru
Guru


Joined: 30 Jul 2004
Posts: 411
Location: Campobasso or Rome, Molise or Lazio, Italy, Europe, Earth, Solar system, Milk Way, Universe

PostPosted: Sun Jul 17, 2005 6:08 pm    Post subject: Reply with quote

X-Drum wrote:
http://forums.gentoo.org/viewtopic-t-182914-highlight-redhat+service.html


:oops: Pardon! Praticamente abbiamo postato la stessa cosa... :D
Come non detto allora! :roll:
_________________
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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Risorse italiane (documentazione e tools) 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