monit-general
[Top][All Lists]
Advanced

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

Re: restarting ffmpeg process


From: admin-at-extremeshok-dot-com
Subject: Re: restarting ffmpeg process
Date: Tue, 06 May 2014 22:00:59 +0200
User-agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0

you need to correctly start ffmpeg

somecrapcommand &
pid=$!
echo $pid > /var/run/somecrapcommand.pid


On 5/6/2014 9:36 PM, Anthony Griffiths wrote:
I've tried but no success so far. I found this page http://mmonit.com/wiki/Monit/FAQ but I can't get the the wrapper script there adapted to my needs. (I don't know what JAVA_HOME and CLASSPATH=ajarfile.jar.is.) I start ffmpeg with a single (long) command in the console and either put a '&' on the end to background it or run it in a screen and then detach. This is how the process runs, it's not done by /etc/init.d/blah-de-blah. Can the monit wrapper script still work with this?


On Tue, May 6, 2014 at 6:21 AM, Weedy <address@hidden> wrote:
On 05/05/14 04:59 AM, Anthony Griffiths wrote:
> I'm running monit-5.3.1-6 on a fedora 20 machine.
> I use ffmpeg to stream video and often the stream goes down. I saw in
> monitrc there is a section to check a process but when ffmpeg is running
> there is no pid file and in the ffmpeg log there is no reference to one.

Any reason what ever script/program you have starting ffmpeg can't make
a pid file?


--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general



--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general


reply via email to

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