Thursday, March 29, 2012

service script on arch linux

Personally I am accustomed to redhat builds of Linux and find myself typing "service".
Instead of typing /etc/rc.d/$service $command where $service is the name of the service I wish to start, or searching for a pre-made solution, I wrote up a little script and saved it as /usr/sbin/service.


#/bin/sh
/etc/rc.d/$1 $2


After saving it chmod it to 755 so it can be executed. You can now issue the command: service network start

and have the network service start successfully, or whichever service script you find in /etc/rc.d

No comments:

Post a Comment