Skip to content

Commit 8632f51

Browse files
author
wendel
committed
adding support files
git-svn-id: svn://svn.microbio.me/QIIME-webdev/trunk/qiime_web_app@2197 aa835298-08e1-4b45-9256-153aff0879ff
1 parent b3ddb9b commit 8632f51

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

support_files/poller_monitor.sh

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#!/bin/bash
2+
3+
# This is a cron job for checking that qiime-poller is running
4+
if [ -f /tmp/qiime-webapp-poller.pid ]
5+
then
6+
# get pid and verify it is running
7+
pid=`cat /tmp/qiime-webapp-poller.pid`
8+
jobinfo=`ps -f -p $pid | grep $pid`
9+
10+
# check that job is running
11+
if [ "$jobinfo" == "" ]
12+
then
13+
if [ -f /tmp/qiime-webapp-poller.stderr ]
14+
then
15+
tail -n 100 /tmp/qiime-webapp-poller.stderr | mail -s "QIIME poller not running" [email protected]
16+
else
17+
echo "qiime-poller output files missing from /tmp/" | mail -s "QIIME poller not running" [email protected]
18+
fi
19+
fi
20+
else
21+
if [ -f /tmp/qiime-webapp-poller.stderr ]
22+
then
23+
tail -n 100 /tmp/qiime-webapp-poller.stderr | mail -s "QIIME poller not running" [email protected]
24+
else
25+
echo "qiime-poller output files missing from /tmp/" | mail -s "QIIME poller not running" [email protected]
26+
fi
27+
fi

0 commit comments

Comments
 (0)