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-21 14:40:02 -0400
commita30ffbf128e7f63ee1375efea459c99ce13f0c4c (patch)
tree41c55df2278c2f1d521090dd8c94b88a6969f4d5
parent0e8d247010bb776a5b55639f38575b4f95e019b3 (diff)
downloadinitscripts-a30ffbf128e7f63ee1375efea459c99ce13f0c4c.tar
initscripts-a30ffbf128e7f63ee1375efea459c99ce13f0c4c.tar.gz
initscripts-a30ffbf128e7f63ee1375efea459c99ce13f0c4c.tar.bz2
initscripts-a30ffbf128e7f63ee1375efea459c99ce13f0c4c.tar.xz
initscripts-a30ffbf128e7f63ee1375efea459c99ce13f0c4c.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