From a30ffbf128e7f63ee1375efea459c99ce13f0c4c Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Thu, 21 Jun 2012 14:40:02 -0400 Subject: Echo to stderr in a bit more standard fashion. (#832220) --- service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service b/service index 2e2d4ea6..6aabd6fc 100755 --- a/service +++ b/service @@ -69,6 +69,6 @@ done if [ -f "${SERVICEDIR}/${SERVICE}" ]; then env -i PATH="$PATH" TERM="$TERM" SYSTEMCTL_IGNORE_DEPENDENCIES=${SYSTEMCTL_IGNORE_DEPENDENCIES} SYSTEMCTL_SKIP_REDIRECT=${SYSTEMCTL_SKIP_REDIRECT} "${SERVICEDIR}/${SERVICE}" ${OPTIONS} else - [ -c /dev/stderr ] && echo $"Redirecting to /bin/systemctl ${OPTIONS} ${SERVICE}.service" >/dev/stderr + echo $"Redirecting to /bin/systemctl ${OPTIONS} ${SERVICE}.service" >&2 exec /bin/systemctl ${OPTIONS} ${SERVICE}.service fi -- cgit v1.2.1