Thayer Williams wrote:
I would have to side with Travis here. In case it's just too much
hassle to type, you can always add some bash functions to make it even
simpler.  Here's what I've got in ~/.bashrc (it's based off someone
else's example from the forums...):

# start, stop, restart, reload - simple daemon management
# usage: start <daemon-name>
start()
{
  for arg in $*; do
    sudo /etc/rc.d/$arg start
  done
}

As I originally started on RedHat, and so am a bit partial to the "service foo start" syntax, I always put the following script into /root/bin on my Arch boxes:

[EMAIL PROTECTED] ~]$ sudo cat /root/bin/service
/etc/rc.d/$*

DR

Reply via email to