aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/check-for-zombies6
-rw-r--r--conf/crontab.ugly2
2 files changed, 7 insertions, 1 deletions
diff --git a/bin/check-for-zombies b/bin/check-for-zombies
new file mode 100755
index 000000000..57f6793f0
--- /dev/null
+++ b/bin/check-for-zombies
@@ -0,0 +1,6 @@
+#!/bin/bash
+#
+# Kill parentless processes still hanging around
+
+pkill -HUP -P 1 -u $1 -f "perl.*fixmystreet_app"
+
diff --git a/conf/crontab.ugly b/conf/crontab.ugly
index d1779ff73..415176779 100644
--- a/conf/crontab.ugly
+++ b/conf/crontab.ugly
@@ -33,5 +33,5 @@ MAILTO=cron-!!(*= $site *)!!@mysociety.org
# Once a day on all servers
39 2 * * * !!(*= $user *)!! /data/vhost/!!(*= $vhost *)!!/fixmystreet/bin/problems-filed-graph
43 2 * * * !!(*= $user *)!! /data/vhost/!!(*= $vhost *)!!/fixmystreet/bin/problem-creation-graph
-
+00 8 * * * !!(*= $user *)!! /data/vhost/!!(*= $vhost *)!!/fixmystreet/bin/check-for-zombies !!(*= $user *)!!