updated USAGE output; fixed rsync invocation in restore command
authorMarc Fiuczynski <mef@cs.princeton.edu>
Fri, 25 Jan 2008 14:41:38 +0000 (14:41 +0000)
committerMarc Fiuczynski <mef@cs.princeton.edu>
Fri, 25 Jan 2008 14:41:38 +0000 (14:41 +0000)
guest.init

index db77508..6ee0579 100755 (executable)
@@ -94,6 +94,8 @@ usage()
     echo "     stop            Stop all PLC subsystems"
     echo "     reload          Regenerate configuration files"
     echo "     restart         Restart all PLC subsystems"
+    echo "     checkpoint filename : Checkpoint the current state of MyPLC to filename"
+    echo "     restart filename : Restpore MyPLC state from filename"
     echo "     steps           Displays ordered list of subsystems"
     echo
     echo "Steps:"
@@ -211,7 +213,7 @@ case "$command" in
        tar xjf $cpfile
        /etc/plc.d/db restore ./etc/planetlab/plc_db.checkpoint ./etc/planetlab/plc_drupal.checkpoint
        rm -f ./etc/planetlab/plc_db.checkpoint ./etc/planetlab/plc_drupal.checkpoint
-       rsync -av ./etc/planetlab/ /etc/planetlab
+       rsync -av ./etc/planetlab/ /etc/planetlab/
        cd -
        rm -rf $cpdir
        ;;