---
ksmtuned.init | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/ksmtuned.init b/ksmtuned.init
index e055785..5cd6090 100644
--- a/ksmtuned.init
+++ b/ksmtuned.init
@@ -77,8 +77,14 @@ case "$1" in
condrestart
;;
retune)
- kill -SIGUSR1 `cat ${pidfile}`
+ pid=`cat ${pidfile} 2> /dev/null`
RETVAL=$?
+ if [ -z "$pid" ]; then
+ echo $"Cannot retune, service is not running."
+ else
+ kill -SIGUSR1 $pid
+ RETVAL=$?
+ fi
;;
*)
echo $"Usage: $prog
{start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
--
1.7.2.1
_______________________________________________
virt mailing list
[email protected]
https://admin.fedoraproject.org/mailman/listinfo/virt