Skip to main content

Comments

2 comments

  • cPRex Jurassic Moderator
    Hey there! It doesn't look like mdadm runs as a daemon service - the example provided on the SuSE page you linked is just the tool running as part of a bash script. This wouldn't have a port to use to check that the tool is up and running. If you'd like to try something different, you could try making the BASH script into a daemon, using something like this:
    0
  • JIKOmetrix
    Thanks. I'll check that out. In review the link I provided it has a daemonization directive. mdadm --monitor --scan --daemonize ='--mail=jdoe@somemail.com'>--mail=jdoe@somemail.com
    When I run this on my Alma linux, ps aux | grep mdadm I get : root 1121 0.0 0.0 28180 1916 ? Ss Sep02 0:01 /sbin/mdadm --monitor --scan -f --pid-file=/var/run/mdadm/mdadm.pid
    It starts on boot. I was just hoping to get a notice from the system. I guess I can try to write a cron script too that send me an email of "/sbin/mdadm --monitor --scan" does not exist in output of "ps aux | grep mdadm".
    0

Please sign in to leave a comment.