From e307cc6f73f51c306ee2ae5d2a80fb2fe03ca7af Mon Sep 17 00:00:00 2001 From: Javi Fontan Date: Thu, 11 Oct 2012 12:18:39 +0200 Subject: [PATCH] bug #1533: Now by default one start backs up oned.log --- share/scripts/one | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/share/scripts/one b/share/scripts/one index dd9fabf561..687d3d381c 100755 --- a/share/scripts/one +++ b/share/scripts/one @@ -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