aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2012-06-21 14:40:02 -0400
committerBill Nottingham <notting@redhat.com>2012-07-06 09:16:11 -0400
commite97413042bcce86bd1645fd7a605404f431d801b (patch)
treef8b0620afb3f804b867686b60fbbb8a2a4d509ad
parent9991cb0369e299032295b53f30227c7440ac86b9 (diff)
downloadinitscripts-e97413042bcce86bd1645fd7a605404f431d801b.tar
initscripts-e97413042bcce86bd1645fd7a605404f431d801b.tar.gz
initscripts-e97413042bcce86bd1645fd7a605404f431d801b.tar.bz2
initscripts-e97413042bcce86bd1645fd7a605404f431d801b.tar.xz
initscripts-e97413042bcce86bd1645fd7a605404f431d801b.zip
Echo to stderr in a bit more standard fashion. (#832220)
-rwxr-xr-xservice2
1 files changed, 1 insertions, 1 deletions
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