git://git.onelab.eu
/
myplc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ed8be4
)
added stop and update usage
author
Marc Fiuczynski
<mef@cs.princeton.edu>
Fri, 1 Feb 2008 16:30:01 +0000
(16:30 +0000)
committer
Marc Fiuczynski
<mef@cs.princeton.edu>
Fri, 1 Feb 2008 16:30:01 +0000
(16:30 +0000)
plc.d/db
patch
|
blob
|
history
diff --git
a/plc.d/db
b/plc.d/db
index
fe25507
..
3f0f8fd
100755
(executable)
--- a/
plc.d/db
+++ b/
plc.d/db
@@
-108,10
+108,7
@@
function clean_dumps()
check
}
-if [ "$PLC_DB_ENABLED" != "1" ] ; then
- exit 0
-fi
-
+[ $PLC_DB_ENABLED -ne 1 ] && exit 0
case "$1" in
start)
MESSAGE=$"Bootstrapping the database"
@@
-177,8
+174,13
@@
EOF
result "$MESSAGE"
;;
+ stop)
+ MESSAGE=$"Ignoring request to stop myplc databases"
+ result "$MESSAGE"
+ ;;
+
*)
- echo "Usage: $0 [start|migrate|dump|c
lean-dum
p]"
+ echo "Usage: $0 [start|migrate|dump|c
heckpoint|restore|clean-dump|sto
p]"
exit 1
;;
esac