aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2012-06-21 14:40:02 -0400
committerBill Nottingham <notting@redhat.com>2012-06-29 17:12:52 -0400
commit7584a3f5351dc6292bd0a5b5548749268b30b75d (patch)
tree342e0445c54d0dda79f41bcedbecb8ae8a5762c1
parent65e41bb479d12512dd0353b9820348abe109a48f (diff)
downloadinitscripts-7584a3f5351dc6292bd0a5b5548749268b30b75d.tar
initscripts-7584a3f5351dc6292bd0a5b5548749268b30b75d.tar.gz
initscripts-7584a3f5351dc6292bd0a5b5548749268b30b75d.tar.bz2
initscripts-7584a3f5351dc6292bd0a5b5548749268b30b75d.tar.xz
initscripts-7584a3f5351dc6292bd0a5b5548749268b30b75d.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