1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

bug #1533: Now by default one start backs up oned.log

This commit is contained in:
Javi Fontan 2012-10-11 12:18:39 +02:00
parent 826dafa397
commit e307cc6f73

View File

@ -41,6 +41,7 @@ else
fi
KILL_9_SECONDS=5
BACKUP="true"
#------------------------------------------------------------------------------
# Function that checks for running daemons
@ -182,8 +183,8 @@ start()
#------------------------------------------------------------------------------
#------------------------------------------------------------------------------
if [ "$1" = "-b" ]; then
BACKUP=true
if [ "$1" = "-f" ]; then
BACKUP="false"
shift
fi
@ -197,9 +198,9 @@ case "$1" in
echo "oned and scheduler stopped"
;;
*)
echo "Usage: one [-b] {start|stop}" >&2
echo "Usage: one [-f] {start|stop}" >&2
echo "Options:" >&2
echo " -b Backup log file." >&2
echo " -f Do not backup log file." >&2
exit 3
;;
esac