Usage with options to display

From: Asif Iqbal <vadud3_at_gmail.com>
Date: Tue, 8 Apr 2014 21:43:15 -0400

I created a symlink /etc/init.d/tac_plus to /usr/bin/sv on precise 64bit.

It works just like LSB style as the man page for sv says.

Is there a way to display the all the optional commands like
start|stop|reload|....
like the regular init scripts shows?

So instead of

   # /etc/init.d/tac_plus
   usage: tac_plus [-w sec] command

may be like below?

# /etc/init.d/tacacs_plus.orig
Usage: /etc/init.d/tacacs_plus
{start|stop|force-stop|restart|force-reload|status|check}

I am guessing I will need to use a regular lsb_style script instead and
and feed the sv commands inside those case blocks?

Thanks

-- 
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
Received on Wed Apr 09 2014 - 01:43:15 UTC

This archive was generated by hypermail 2.3.0 : Sun May 09 2021 - 19:44:18 UTC