linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: rlaager@wiktel.com
To: linux-raid@vger.kernel.org
Cc: rlaager@wiktel.com
Subject: [PATCH 2/2] mdcheck: Set a tag of mdcheck
Date: Thu, 24 Sep 2020 17:36:39 -0500	[thread overview]
Message-ID: <20200924223639.23087-2-rlaager@wiktel.com> (raw)
In-Reply-To: <20200924223639.23087-1-rlaager@wiktel.com>

From: Richard Laager <rlaager@wiktel.com>

For syslog messages, the tag is normally the daemon/script name.  This
changes the log messages from using "root: mdcheck ..." to
"mdcheck: ...".

Signed-off-by: Richard Laager <rlaager@wiktel.com>
---
 misc/mdcheck | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/misc/mdcheck b/misc/mdcheck
index 299cf10..acfda10 100644
--- a/misc/mdcheck
+++ b/misc/mdcheck
@@ -94,14 +94,14 @@ do
 	if [ -z "$cont" ]
 	then
 		start=0
-		logger -p daemon.info mdcheck start checking $dev
+		logger -p daemon.info -t mdcheck start checking $dev
 	elif [ -z "$MD_UUID" -o ! -f "$fl" ]
 	then
 		# Nothing to continue here
 		continue
 	else
 		start=`cat "$fl"`
-		logger -p daemon.info mdcheck continue checking $dev from $start
+		logger -p daemon.info -t mdcheck continue checking $dev from $start
 	fi
 
 	cnt=$[cnt+1]
@@ -131,7 +131,7 @@ do
 
 		if [ "`cat $sys/md/sync_action`" != 'check' ]
 		then
-			logger -p daemon.info mdcheck finished checking $dev
+			logger -p daemon.info -t mdcheck finished checking $dev
 			eval MD_${i}_fl=
 			rm -f $fl
 			continue;
@@ -162,5 +162,5 @@ do
 	fi
 	echo idle > $sys/md/sync_action
 	cat $sys/md/sync_min > $fl
-	logger -p daemon.info mdcheck pause checking $dev at `cat $fl`
+	logger -p daemon.info -t mdcheck pause checking $dev at `cat $fl`
 done
-- 
2.17.1


      reply	other threads:[~2020-09-24 22:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-24 22:36 [PATCH 1/2] mdcheck: Prefix pause message with mdcheck rlaager
2020-09-24 22:36 ` rlaager [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200924223639.23087-2-rlaager@wiktel.com \
    --to=rlaager@wiktel.com \
    --cc=linux-raid@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).