<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body><div>Ok, Fredrigo,<br></div>
<div> </div>
<div> </div>
<div>On Wed, Nov 19, 2014, at 11:06 AM, Freddy Martinez wrote:<br></div>
<blockquote type="cite"><p dir="ltr">Hi all<br></p><p dir="ltr">Looks like our media goblin install is timing out when I try to hit it. Is it down?<br></p><p dir="ltr">Freddy<br></p></blockquote><div> </div>
<div>I've put a script in place to check for a running mediagoblin-paster process. If that process isn't running, the script will start it. Thanks again for bringing this up . . . we should be model-users for MediaGoblin.  : )<br></div>
<div> </div>
<div>Cheers,<br></div>
<div> </div>
<div>Jim<br></div>
<div> </div>
<div>P.S. It's none too fancy, but here it is. It runs the check via a crontab entry.<br></div>
<div> </div>
<div>-------------------<br></div>
<div>#!/bin/bash<br></div>
<div> </div>
<div>echo -e "This scripts checks the to see if the mediagoblin-paster process is running."<br></div>
<div>echo -e "Checking . . . "<br></div>
<div> </div>
<div>mgcheck=$(service mediagoblin-paster status | awk '{print $2}')<br></div>
<div> </div>
<div>if [ $mgcheck == "start/running," ]; then<br></div>
<div>  echo -e "The mediagoblin-paster process is running. Exiting."<br></div>
<div>else<br></div>
<div>  echo -e "The mediagoblin-paster process is not running. Starting . . . "<br></div>
<div>  service mediagoblin-paster start<br></div>
<div>fi<br></div>
<div>-------------------<br></div>
</body>
</html>