#779272 mpt-status: /etc/default/mpt-statusd is not created by package install

Package:
mpt-status
Source:
mpt-status
Description:
get RAID status out of mpt (and other) HW RAID controllers
Submitter:
Chris Lewis
Date:
2021-09-12 16:06:03 UTC
Severity:
normal
#779272#5
Date:
2015-02-26 10:49:58 UTC
From:
To:
Dear Maintainer,

It would be nice to have a /etc/default/mpt-statusd file created with #'d out options
particularly the ID parameter for the controller. It would make setting up the program
far more obvious.

This would be a good template for it

#MAILTO=root   # Where to report problems
#PERIOD=600    # Seconds between each check    (default 10 minutes)
#REMIND=7200   # Seconds between each reminder (default 2 hours)
#RUN_DAEMON=yes
#ID=0



Cheers!


*** Please consider answering these questions, where appropriate ***

   * What led up to the situation?
   * What exactly did you do (or not do) that was effective (or
     ineffective)?
   * What was the outcome of this action?
   * What outcome did you expect instead?

*** End of the template - remove these lines ***

#779272#10
Date:
2021-09-12 15:41:27 UTC
From:
To:
This would still be a useful change to have in bullseye.

At the moment I just run this after installing mpt-status...

sed -n 's/^\(MAILTO=\|PERIOD=\|REMIND=\|RUN_DAEMON=\|ID=\)/#\1/p'
/etc/init.d/mpt-statusd > /etc/default/mpt-statusd

That way I have a slightly easier way of editing such options like
MAILTO= (for which e-mail address to send alerts to) or ID= (for which
RAID controller the service should watch)