>From 04ae3b93a10a21616266fe33b4d0a5d0d0cc1352 Mon Sep 17 00:00:00 2001 From: Andrea Arcangeli Date: Fri, 2 Jul 2010 17:36:53 +0200 Subject: [PATCH 2/2] fix some error in ksmtuned.init Return 2 instead of 3 in case of invalid parameters. Add try-restart and force-reload. Add new verbs to usage help line. Signed-off-by: Andrea Arcangeli --- ksmtuned.init | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ksmtuned.init b/ksmtuned.init index 2f32f28..e055785 100644 --- a/ksmtuned.init +++ b/ksmtuned.init @@ -70,10 +70,10 @@ case "$1" in status -p ${pidfile} $prog RETVAL=$? ;; - restart) + restart|force-reload) restart ;; - condrestart) + condrestart|try-restart) condrestart ;; retune) @@ -81,8 +81,8 @@ case "$1" in RETVAL=$? ;; *) - echo $"Usage: $prog {start|stop|restart|condrestart|status|retune|help}" - RETVAL=3 + echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}" + RETVAL=2 esac exit $RETVAL -- 1.7.1