Add function config_jobmon to configure lcg job monitoring
authorDi Qing <Di.Qing@cern.ch>
Wed, 5 Dec 2007 10:18:04 +0000 (10:18 +0000)
committerDi Qing <Di.Qing@cern.ch>
Wed, 5 Dec 2007 10:18:04 +0000 (10:18 +0000)
org.glite.yaim.lb/config/functions/config_jobmon [new file with mode: 0644]
org.glite.yaim.lb/config/node-info.d/glite-lb
org.glite.yaim.lb/config/node-info.d/glite-lb_30

diff --git a/org.glite.yaim.lb/config/functions/config_jobmon b/org.glite.yaim.lb/config/functions/config_jobmon
new file mode 100644 (file)
index 0000000..370a180
--- /dev/null
@@ -0,0 +1,42 @@
+##############################################################################
+# Copyright (c) Members of the EGEE Collaboration. 2004.
+# See http://www.eu-egee.org/partners/ for details on the copyright
+# holders.
+#
+# Licensed 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.
+##############################################################################
+#
+# NAME :        config_jobmon
+#
+# DESCRIPTION : This function configures the globus clients.
+#
+# AUTHORS :     Di.Qing@cern.ch
+#
+# NOTES :
+#
+# YAIM MODULE:  glite-yaim-lb
+#
+##############################################################################
+
+function config_jobmon(){
+
+  if [ -f /opt/lcg/etc/init.d/lcg-mon-logfile-daemon ]; then
+    ln -sf /opt/lcg/etc/init.d/lcg-mon-logfile-daemon /etc/rc.d/init.d/lcg-mon-job-status
+    /sbin/chkconfig lcg-mon-job-status on
+    /etc/rc.d/init.d/lcg-mon-job-status restart
+  fi
+
+  return 0;
+}
+
index 0b53504..f3360fe 100644 (file)
@@ -10,5 +10,6 @@ config_gip_lb
 config_globus_clients
 config_glite_lb
 config_glite_locallogger
+config_jobmon
 config_bdii_only
 config_glite_initd"
index 98639b6..a3f92bb 100644 (file)
@@ -10,5 +10,6 @@ config_gip_lb_30
 config_globus_clients
 config_glite_lb_30
 config_glite_locallogger
+config_jobmon
 config_bdii
 config_glite_initd"