From 739bb665a0236763432d8105fb38752d680e9873 Mon Sep 17 00:00:00 2001 From: Marc Fiuczynski Date: Fri, 1 Feb 2008 16:30:01 +0000 Subject: [PATCH] added stop and update usage --- plc.d/db | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/plc.d/db b/plc.d/db index fe25507..3f0f8fd 100755 --- 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|clean-dump]" + echo "Usage: $0 [start|migrate|dump|checkpoint|restore|clean-dump|stop]" exit 1 ;; esac -- 2.47.0