13 Apr
2010
13 Apr
'10
9:23 p.m.
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