Re: manage starting and stopping processes with less typing

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



What about that: for i in $(ls -1 /etc/rc.d); do alias rc-$i="/etc/rc,d/$i";
done
That's simple and dynamic, just insert it on your .bashrc ou
/etc/bash.bashrc (global)

On Tue, Apr 13, 2010 at 4:41 PM, Kazuo Teramoto <kaz.rag@xxxxxxxxx> wrote:

> On Tue, Apr 13, 2010 at 4:22 PM, David C. Rankin
> <drankinatty@xxxxxxxxxxxxxxxxxx> 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
> >
>
> Uhh, I dont use rc.d too much to this be usefull to me but...
>
> I'm thinking about it, creating sym links looks *ugly* to me, because
> you need to updated it after you remove or add new rc.d.
>
> I think that a much cleaner solution is to create a rename filesystem
> using FUSE to rename files from /etc/rc.d on the fly. (FUSE is so cool
> ^_^)
>
> Bye,
> Kazuo
>
> --
> «Dans la vie, rien n'est à craindre, tout est à comprendre»
> Marie Sklodowska Curie.
>



-- 
Flávio Coutinho da Costa


[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