git://git.onelab.eu
/
mom.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ecd1baf
)
- renamed pl_mom daemon to swapmon
author
Mark Huang
<mlhuang@cs.princeton.edu>
Fri, 28 Apr 2006 19:28:59 +0000
(19:28 +0000)
committer
Mark Huang
<mlhuang@cs.princeton.edu>
Fri, 28 Apr 2006 19:28:59 +0000
(19:28 +0000)
pl_mop.sh
patch
|
blob
|
history
diff --git
a/pl_mop.sh
b/pl_mop.sh
index
5ac5546
..
edc8222
100755
(executable)
--- a/
pl_mop.sh
+++ b/
pl_mop.sh
@@
-5,7
+5,7
@@
# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2005 The Trustees of Princeton University
#
# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2005 The Trustees of Princeton University
#
-# $Id: pl_mop.sh,v 1.
4 2006/01/26 19:26:20
mlhuang Exp $
+# $Id: pl_mop.sh,v 1.
5 2006/03/06 20:40:33
mlhuang Exp $
#
PATH=/sbin:/usr/sbin:$PATH
#
PATH=/sbin:/usr/sbin:$PATH
@@
-46,7
+46,7
@@
fix_etc_shadow() {
# keep essential services running
restart_services() {
# keep essential services running
restart_services() {
- for service in sshd pl_sshd
pl_mom
pl_nm proper ; do
+ for service in sshd pl_sshd
swapmon
pl_nm proper ; do
echo "* Checking $service"
status=$(service $service status)
if [ $? -ne 0 ] || echo $status 2>&1 | grep -q stopped ; then
echo "* Checking $service"
status=$(service $service status)
if [ $? -ne 0 ] || echo $status 2>&1 | grep -q stopped ; then