Re: manage starting and stopping processes with less typing

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



On 04/13/2010 03:22 PM, David C. Rankin wrote:
Guys,

	One thing I miss with Arch are init-script shortcuts for starting and stopping
processes. rc-commands really help cut down on typing. For example, all suse did
was to create links to the files in /etc/rc.d/... with a naming convention of
rc<init script name>. So, for example, instead of having to type:

   /etc/rc.d/postfix

the shortcut was simply

   rcpostfix

The way I usually handle this is to create an executable shell script in my ~/bin directory (which is on my path) and in /root/bin called "service". It looks like so:

#!/bin/bash
/etc/rc.d/$*

Then I can use RedHat-like syntax to start and stop services:

$ sudo service httpd restart

HTH,

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