Re: Tool to stop and start services? (Don't Panic)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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:

[darose@davidrlin ~]$ sudo cat /root/bin/service
/etc/rc.d/$*

DR



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux