You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by cw...@apache.org on 2013/05/21 20:44:04 UTC

svn commit: r1484900 - in /uima/sandbox/uima-ducc/trunk/src/main: admin/ducc_reap_rogues.sh resources/ducc.properties

Author: cwiklik
Date: Tue May 21 18:44:03 2013
New Revision: 1484900

URL: http://svn.apache.org/r1484900
Log:
UIMA-2882 external script to clean rogue processes

Added:
    uima/sandbox/uima-ducc/trunk/src/main/admin/ducc_reap_rogues.sh   (with props)
Modified:
    uima/sandbox/uima-ducc/trunk/src/main/resources/ducc.properties

Added: uima/sandbox/uima-ducc/trunk/src/main/admin/ducc_reap_rogues.sh
URL: http://svn.apache.org/viewvc/uima/sandbox/uima-ducc/trunk/src/main/admin/ducc_reap_rogues.sh?rev=1484900&view=auto
==============================================================================
--- uima/sandbox/uima-ducc/trunk/src/main/admin/ducc_reap_rogues.sh (added)
+++ uima/sandbox/uima-ducc/trunk/src/main/admin/ducc_reap_rogues.sh Tue May 21 18:44:03 2013
@@ -0,0 +1,24 @@
+#!/bin/bash
+# -----------------------------------------------------------------------
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+# -----------------------------------------------------------------------
+# 
+# Empty script that is called by Ducc's Agent to reap rogue processes.
+# Administrator should modify this script to perform cleanup as appropriate.
+# The Agent calls this script with a single argument which is a process PID.
+#
\ No newline at end of file

Propchange: uima/sandbox/uima-ducc/trunk/src/main/admin/ducc_reap_rogues.sh
------------------------------------------------------------------------------
    svn:eol-style = LF

Modified: uima/sandbox/uima-ducc/trunk/src/main/resources/ducc.properties
URL: http://svn.apache.org/viewvc/uima/sandbox/uima-ducc/trunk/src/main/resources/ducc.properties?rev=1484900&r1=1484899&r2=1484900&view=diff
==============================================================================
--- uima/sandbox/uima-ducc/trunk/src/main/resources/ducc.properties (original)
+++ uima/sandbox/uima-ducc/trunk/src/main/resources/ducc.properties Tue May 21 18:44:03 2013
@@ -294,7 +294,10 @@ ducc.agent.launcher.cgroups.enable=false
 # syntax:  <node>=cgroups,ap
 # the above will exclude node from using cgroups and prevent deployment of APs
 ducc.agent.exclusion.file=${DUCC_HOME}/resources/exclusion.nodes
-
+#
+# Uncomment the following line to support auto reaping of rogue processes by Ducc's Agent
+# ducc.agent.rogue.process.reaper.script=${DUCC_HOME}/admin/ducc_reap_rogues.sh
+#
 # Process Manager Configuration block
 ducc.pm.configuration.class=org.apache.uima.ducc.pm.config.ProcessManagerConfiguration
 ducc.pm.request.endpoint=ducc.pm