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:
d7c356d
)
Only restart services which are enabled.
author
Daniel Hokka Zakrisson
<dhokka@cs.princeton.edu>
Sun, 13 Dec 2009 14:58:02 +0000
(14:58 +0000)
committer
Daniel Hokka Zakrisson
<dhokka@cs.princeton.edu>
Sun, 13 Dec 2009 14:58:02 +0000
(14:58 +0000)
pl_mop.sh
patch
|
blob
|
history
diff --git
a/pl_mop.sh
b/pl_mop.sh
index
a94afbf
..
a278230
100755
(executable)
--- 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
# 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
echo "* Checking $service"
status=$(service $service status)
if [ $? -ne 0 ] || echo $status 2>&1 | grep -q stopped ; then