On Thursday 20 Nov 2008, Vivek Rajagopalan wrote:

> I want to maintain the server via "service trisul start/stop/restart"

you can write a one line bash function called service() that invokes 
the /etc/init.d/<script> and passes it the parameter(s) it expects.

bash man page has enough info to get you started.

On distros that already have "service" (RHEL+derivatives, openSUSE etc.) 
name the function something else.

-- 
Arun Khan

_______________________________________________
To unsubscribe, email [EMAIL PROTECTED] with 
"unsubscribe <password> <address>"
in the subject or body of the message.  
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

Reply via email to