diff --git a/xCAT/postscripts/redirectps b/xCAT/postscripts/redirectps index 1b1f39fb6..2bbf2f0f1 100755 --- a/xCAT/postscripts/redirectps +++ b/xCAT/postscripts/redirectps @@ -10,7 +10,7 @@ if (!$ENV{'NFSSERVER'}) { - `logger -t xcat "environment variable does not exist, exiting..."`; + `logger -t xcat -p local4.err "environment variable does not exist, exiting..."`; exit; } @@ -80,13 +80,13 @@ sub runcmd $rc = $? >> 8; if ($rc > 0) { - `logger -t xcat "runcmd $cmd failed, error message is:"`; + `logger -t xcat -p local4.err "runcmd $cmd failed, error message is:"`; my $errmsg; foreach my $err (@::outref) { $errmsg .= $err; } - `logger -t xcat "$errmsg"`; + `logger -t xcat -p local4.err "$errmsg"`; exit; } }