monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: restarting ffmpeg process


From: Anthony Griffiths
Subject: Re: restarting ffmpeg process
Date: Tue, 6 May 2014 21:27:23 +0100

thanks, can you point me to a relevant example of such a pgrep script?


On Tue, May 6, 2014 at 9:17 PM, Kevin Chadwick <address@hidden> wrote:
previously on this list Anthony Griffiths contributed:

> Is there a way that monit can monitor the ffmpeg process and run the
> command that restarts it?

I used to use a pgrep script which is better than a pid file in almost
all cases. monit has supported the same functionality for a couple of
years or so. Check the manual and usually using a start or end of line
regex is helpful.

--
_______________________________________________________________________

'Write programs that do one thing and do it well. Write programs to work
together. Write programs to handle text streams, because that is a
universal interface'

(Doug McIlroy)

In Other Words - Don't design like polkit or systemd
_______________________________________________________________________

I have no idea why RTFM is used so aggressively on LINUX mailing lists
because whilst 'apropos' is traditionally the most powerful command on
Unix-like systems it's 'modern' replacement 'apropos' on Linux is a tool
to help psychopaths learn to control their anger.

(Kevin Chadwick)

_______________________________________________________________________


reply via email to

[Prev in Thread] Current Thread [Next in Thread]