🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.privacy.anon-server
Article #312346

Re: Ping redjohn

#312346
From: inwtx
Date: Thu, 17 Dec 2020 13:18
40 lines
1586 bytes
> 
> Appears that mixmaster stopped running. I just rebooted my server
> and things are moving again.
> 

  Here is a small script I run every 5 minutes to check that certain
programs are running.



#!/bin/bash

## PgmsRunningGlobalChk.sh
## Add/insert the program name into the array list.
## Place your home email address in the emailaddr= field.

## Cron: */5 * * * * /root/PgmsRunningGlobalChk.sh &> /dev/null


filePath=${0%/*}  # current file path

emailaddr="your@email.address"

array=(
"mixmaster"  # mixmaster
"yamn"       # yamn
"master"     # nginx
"qmgr"       # postfix
)

  for index in ${!array[*]}; do
      varpgm=${array[index]}

      if [[ $(pgrep --exact -x $varpgm) == "" ]]; then
         mutt -s "Warning: Program not running - $varpgm" $emailaddr <<< "Warning: Program not running - $varpgm"   # send error
      fi

  done

exit 0
Technical Details
Message-ID: <rrflre$tf6$1@news.mixmin.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
References: <20201217021750.E91391201BB@fleegle.mixmin.net>

Show Full Headers
Complete Article Headers
Message-ID: <rrflre$tf6$1@news.mixmin.net>
Subject: Re: Ping redjohn
Date: Thu, 17 Dec 2020 07:18:38 -0600
From: "inwtx" <noreply@inwtx.net>
References: <20201217021750.E91391201BB@fleegle.mixmin.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
Newsgroups: alt.privacy.anon-server
Organization: Mixmin
Injection-Date: Thu, 17 Dec 2020 13:18:39 -0000 (UTC)
Injection-Info: news.mixmin.net; posting-host="ddea2a6a0e5e6728ecb62cbee1a261fc71245b14"; logging-data="30182"; mail-complaints-to="abuse@mixmin.net"