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
I have normally seen the sym-link shortcuts placed in /usr/sbin, but /usr/local/sbin works fine as well. The convenience is addictive. If you manage your box from the command line or want to, then you can give this setup a testdrive. You can create the sym-links very easily with the following cut and pasted to the command line (as root - all on one line):
for i in $(ls /etc/rc.d); do [[ -e /etc/rc.d/$i ]] && [[ ! -h /usr/local/sbin/$i ]] && ln -sv /etc/rc.d/$i /usr/local/sbin/rc${i}; done
No need to create one symlink per file. You can just add rc() { /etc/rc.d/$*; } to the user profile to automatically be able to do: rc postfix start for any script you have or ever add. To have autocompletion with your new command, also add: complete -o filenames -W "$(cd /etc/rc.d/ && echo *)" rc __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com