[Bug 251330] Re: mythtv-status init script lacks the 'status' action

Dustin Kirkland dustin.kirkland at gmail.com
Thu Jul 24 16:52:06 BST 2008


Hi Andrew,

The policy is actually defined by the LSB:
 * http://refspecs.freestandards.org/LSB_3.1.0/LSB-Core-generic/LSB-Core-generic/iniscrptact.html

Quoting:
"If the status action is requested, the init script will return the following exit status codes.
  0	program is running or service is OK
  ..."

In the case of mythtv-status, it's not so much that the "program is
running", but more that the "service is OK" or that it has run
successfully.

I'm attaching another patch.  Basically, I've edited the init script to
touch a file, /var/run/mythtv-status, if it starts successfully, and
remove that file if it does not start successfully, or it's stopped.

The 'status' action is then simply a test of that file's existence.
Have a look at the updated patch attached.

:-Dustin



** Attachment added: "mythtv-status.251330.debdiff"
   http://launchpadlibrarian.net/16282563/mythtv-status.251330.debdiff

** Changed in: mythtv-status (Ubuntu)
   Importance: Undecided => Wishlist
       Status: Invalid => In Progress

-- 
mythtv-status init script lacks the 'status' action
https://bugs.launchpad.net/bugs/251330
You received this bug notification because you are a member of Ubuntu
Sponsors for universe, which is a direct subscriber.



More information about the Ubuntu-universe-sponsors mailing list