[Fusionforge-commits] FusionForge branch 6.0 updated. 2189b28 scm: kill stalled apache processes

Sylvain Beucler beuc-inria at libremir.placard.fr.eu.org
Mon Jun 8 17:17:47 CEST 2015


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".

The branch, 6.0 has been updated
       via  2189b2876d1d46c86f62985138ebebc472aa7456 (commit)
      from  b32e44abdce8e4225a96f92ea9070256e013ab18 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 2189b2876d1d46c86f62985138ebebc472aa7456
Author: Sylvain Beucler <sylvain.beucler at inria.fr>
Date:   Mon Jun 8 17:14:02 2015 +0200

    scm: kill stalled apache processes

diff --git a/src/CHANGES b/src/CHANGES
index 1abe417..ab2add4 100644
--- a/src/CHANGES
+++ b/src/CHANGES
@@ -2,6 +2,7 @@ FusionForge 6.0.1:
 * Accounts: accept elliptic curve ssh keys (Unit 193)
 * Accounts: fix project join request form (Inria)
 * SCM: fix commit privileges (*_scmro group membership) (Inria)
+* SCM: kill stalled Apache processes (Inria)
 * FRS: display new releases first (Roland Mas, for Inria)
 * Tracker: fix description re-html-ization when editing item (Inria)
 * Tracker: fix HTML entities in mail notifications (Inria)
diff --git a/src/etc/cron.d/fusionforge-scm b/src/etc/cron.d/fusionforge-scm
index 5a29832..baaa8a8 100644
--- a/src/etc/cron.d/fusionforge-scm
+++ b/src/etc/cron.d/fusionforge-scm
@@ -9,3 +9,5 @@ PATH=@bindir@:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
 # Generate snapshots and tarballs from SCM repositories
 0 3 * * * root forge_run_job scm/generate_scm_snapshots.php
 
+# Kill old Apache2 processes (excluding the main apache parent)
+1 * * * *	root	d=$(forge_get_config apache_service); for pid in $(pidof $d -o $(cat /var/run/$d/$d.pid)); do etimes=$(ps -oetimes -p$pid | tail -n+2); if [ ${etimes:-0} -gt 86400 ]; then kill -9 $pid; fi; done

-----------------------------------------------------------------------

Summary of changes:
 src/CHANGES                    | 1 +
 src/etc/cron.d/fusionforge-scm | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/src/CHANGES b/src/CHANGES
index 1abe417..ab2add4 100644
--- a/src/CHANGES
+++ b/src/CHANGES
@@ -2,6 +2,7 @@ FusionForge 6.0.1:
 * Accounts: accept elliptic curve ssh keys (Unit 193)
 * Accounts: fix project join request form (Inria)
 * SCM: fix commit privileges (*_scmro group membership) (Inria)
+* SCM: kill stalled Apache processes (Inria)
 * FRS: display new releases first (Roland Mas, for Inria)
 * Tracker: fix description re-html-ization when editing item (Inria)
 * Tracker: fix HTML entities in mail notifications (Inria)
diff --git a/src/etc/cron.d/fusionforge-scm b/src/etc/cron.d/fusionforge-scm
index 5a29832..baaa8a8 100644
--- a/src/etc/cron.d/fusionforge-scm
+++ b/src/etc/cron.d/fusionforge-scm
@@ -9,3 +9,5 @@ PATH=@bindir@:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
 # Generate snapshots and tarballs from SCM repositories
 0 3 * * * root forge_run_job scm/generate_scm_snapshots.php
 
+# Kill old Apache2 processes (excluding the main apache parent)
+1 * * * *	root	d=$(forge_get_config apache_service); for pid in $(pidof $d -o $(cat /var/run/$d/$d.pid)); do etimes=$(ps -oetimes -p$pid | tail -n+2); if [ ${etimes:-0} -gt 86400 ]; then kill -9 $pid; fi; done


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list