[mythtv-users] Mythbackend randomly dies
Joe Ripley
vitaminjoe at gmail.com
Mon Aug 11 22:26:54 UTC 2008
On Mon, Aug 11, 2008 at 1:57 PM, Bobby Gill <bobbygill at rogers.com> wrote:
> Can you explain Tino (For a linux intermediate like myself)? :)
>
A command like 'ps ax | grep -v grep | grep mythbackend' will search
for 'mythbackend' in the entire command line of each running process.
So, a command like 'tail -f /var/log/mythbackend.log' would also
return TRUE for your script.
Use something like this instead:
if pidof mythbackend ; then
<do something>
else
<do something else>
fi
--
Joe Ripley
vitaminjoe at gmail.com
More information about the mythtv-users
mailing list