X-Git-Url: http://git.onelab.eu/?p=mom.git;a=blobdiff_plain;f=pl_mop.sh;fp=pl_mop.sh;h=a278230e4cee1848d0ab333e8c9fa421a00d1399;hp=a94afbfc04b62d302219f3942e44b7ec2e6f5caf;hb=35fc6f409f7372549b7c07bddecc6dc9541160c9;hpb=d7c356d9cbf362558d3704ef0a69de79d0525441 diff --git a/pl_mop.sh b/pl_mop.sh index a94afbf..a278230 100755 --- a/pl_mop.sh +++ b/pl_mop.sh @@ -54,6 +54,7 @@ fix_etc_shadow() { # keep essential services running restart_services() { for service in sshd pl_sshd swapmon nm fprobe-ulog codemux; do + chkconfig --list $service | grep -q 3:on || continue echo "* Checking $service" status=$(service $service status) if [ $? -ne 0 ] || echo $status 2>&1 | grep -q stopped ; then