service restart

Steen "Miravlix" Poulsen dragon at lix-world.net
Fri Jul 28 19:11:05 UTC 2006


fre, 28 07 2006 kl. 19:33 +0200, skrev Ouattara Oumar Aziz:
> > service () { 
> >     /etc/init.d/$1 $2
> > }
> Your solution is a much more better that mine :) . 2 lines to add to 
> .bashrc and here you go.


For the ultra lazy

srest () {
	/etc/init.d/$1 restart
}

sstart() {
	/etc/init.d/$1 start
}

sstop() {
	/etc/init.d/$1 stop
}

sreload() {
	/etc/init.d/$1 reload
}

sforce() {
	echo Super Zuber morphong power!
	/etc/init.d/$1 force-reload
}

sstatus() {
	/etc/init.d/$1 status
}






More information about the ubuntu-users mailing list