From: Richard Laager <rlaager@xxxxxxxxxx> 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@xxxxxxxxxx> --- 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