From 8d21ec6e8d62dc6fd4eb5ccc1a9295958bb2a9af Mon Sep 17 00:00:00 2001 From: Marcin Krol Date: Thu, 8 Oct 2015 07:39:27 +0000 Subject: [PATCH] - quote service name --- lvm2-tld_init.patch | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/lvm2-tld_init.patch b/lvm2-tld_init.patch index b34ec12..8acc383 100644 --- a/lvm2-tld_init.patch +++ b/lvm2-tld_init.patch @@ -271,10 +271,10 @@ diff -ur LVM2.2.02.132.orig/scripts/lvm2_lvmetad_init_red_hat.in LVM2.2.02.132/s - status -p $PID_FILE $DAEMON +start() { + if [ -f $LOCK_FILE ]; then -+ msg_already_running $NAME ++ msg_already_running "$NAME" + return + fi -+ msg_starting $NAME ++ msg_starting "$NAME" + daemon /sbin/$DAEMON /dev/null 2>&1 +stop() { + if [ ! -f $LOCK_FILE ]; then -+ msg_not_running $NAME ++ msg_not_running "$NAME" + return + fi -+ msg_stopping $NAME ++ msg_stopping "$NAME" + killproc --pidfile $PID_FILE $DAEMON + rm -f $LOCK_FILE } @@ -299,7 +299,7 @@ diff -ur LVM2.2.02.132.orig/scripts/lvm2_lvmetad_init_red_hat.in LVM2.2.02.132/s - return $ret +condrestart() { + if [ ! -f $LOCK_FILE ]; then -+ msg_not_running $NAME ++ msg_not_running "$NAME" + RETVAL=$1 + return + fi @@ -315,11 +315,11 @@ diff -ur LVM2.2.02.132.orig/scripts/lvm2_lvmetad_init_red_hat.in LVM2.2.02.132/s - return $ret +reload() { + if [ ! -f $LOCK_FILE ]; then -+ msg_not_running $NAME ++ msg_not_running "$NAME" + RETVAL=7 + return + fi -+ msg_reloading $NAME ++ msg_reloading "$NAME" + killproc $DAEMON -HUP + RETVAL=$? } @@ -420,10 +420,10 @@ diff -ur LVM2.2.02.132.orig/scripts/lvm2_lvmpolld_init_red_hat.in LVM2.2.02.132/ - status -p $PID_FILE $DAEMON +start() { + if [ -f $LOCK_FILE ]; then -+ msg_already_running $NAME ++ msg_already_running "$NAME" + return + fi -+ msg_starting $NAME ++ msg_starting "$NAME" + daemon /sbin/$DAEMON /dev/null 2>&1 +stop() { + if [ ! -f $LOCK_FILE ]; then -+ msg_not_running $NAME ++ msg_not_running "$NAME" + return + fi -+ msg_stopping $NAME ++ msg_stopping "$NAME" + killproc --pidfile $PID_FILE $DAEMON + rm -f $LOCK_FILE } @@ -448,7 +448,7 @@ diff -ur LVM2.2.02.132.orig/scripts/lvm2_lvmpolld_init_red_hat.in LVM2.2.02.132/ - return $ret +condrestart() { + if [ ! -f $LOCK_FILE ]; then -+ msg_not_running $NAME ++ msg_not_running "$NAME" + RETVAL=$1 + return + fi @@ -464,11 +464,11 @@ diff -ur LVM2.2.02.132.orig/scripts/lvm2_lvmpolld_init_red_hat.in LVM2.2.02.132/ - return $ret +reload() { + if [ ! -f $LOCK_FILE ]; then -+ msg_not_running $NAME ++ msg_not_running "$NAME" + RETVAL=7 + return + fi -+ msg_reloading $NAME ++ msg_reloading "$NAME" + killproc $DAEMON -HUP + RETVAL=$? } -- 2.46.0