X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=pl_mop.sh;h=80fcb4175d5fc7c5d7dbc7a8be2da75a33c3d56d;hb=3a0a4118e3adf3aaa282a5adedc1671987ab3c1e;hp=61b7a6359d1f5bd189989d845f75d54aae637ab2;hpb=e9b522b95acd8712285078e91f2d5a79cfc7c913;p=mom.git diff --git a/pl_mop.sh b/pl_mop.sh index 61b7a63..80fcb41 100755 --- a/pl_mop.sh +++ b/pl_mop.sh @@ -5,7 +5,7 @@ # Mark Huang # Copyright (C) 2005 The Trustees of Princeton University # -# $Id: pl_mop.sh,v 1.6 2006/04/28 19:28:59 mlhuang Exp $ +# $Id: pl_mop.sh,v 1.8 2007/02/14 20:48:46 faiyaza Exp $ # PATH=/sbin:/usr/sbin:$PATH @@ -53,7 +53,7 @@ fix_etc_shadow() { # keep essential services running restart_services() { - for service in sshd pl_sshd swapmon pl_nm proper ; do + for service in sshd pl_sshd swapmon nm proper ; do echo "* Checking $service" status=$(service $service status) if [ $? -ne 0 ] || echo $status 2>&1 | grep -q stopped ; then @@ -75,17 +75,6 @@ restart_netflow() { fi } -# keep pl_conf running -restart_pl_conf() { - echo "* Checking pl_conf" - vserver pl_conf exec /sbin/service pl_conf status >/dev/null 2>&1 - if [ $? -ne 0 ] ; then - echo "* Restarting pl_conf" - vserver pl_conf stop - vserver pl_conf start - fi -} - # GPG keys are installed in /etc/pki/rpm-gpg by both the Boot Manager # during initial installation, and by PlanetLabConf during daily # updates. NodeUpdate imports the keys into the RPM database before @@ -224,8 +213,6 @@ run fix_etc_shadow run restart_services -run restart_pl_conf - run restart_netflow run kill_duplicate_ssh