function service() { /etc/init.d/$1 $2 } So all I do is service start cos I can never remember /etc/init.d/ start so you would need to do a similar thing