diff options
author | Bill Nottingham <notting@redhat.com> | 2011-10-25 15:32:53 -0400 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2011-10-25 15:32:53 -0400 |
commit | 807a7f34cd58c537d8b361694d0a4bad23d8aff9 (patch) | |
tree | 07cd5662e5d5ba935a521e2ea0a11ccc48293937 | |
parent | 6ce3e4700baa4e37e6b16e4160c00b2ebea58d81 (diff) | |
download | initscripts-807a7f34cd58c537d8b361694d0a4bad23d8aff9.tar initscripts-807a7f34cd58c537d8b361694d0a4bad23d8aff9.tar.gz initscripts-807a7f34cd58c537d8b361694d0a4bad23d8aff9.tar.bz2 initscripts-807a7f34cd58c537d8b361694d0a4bad23d8aff9.tar.xz initscripts-807a7f34cd58c537d8b361694d0a4bad23d8aff9.zip |
Don't write to stderr that's not there (or a socket, or whatever, #746263)
-rwxr-xr-x | service | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 - echo $"Redirecting to /bin/systemctl ${OPTIONS} ${SERVICE}.service" >/dev/stderr + [ -c /dev/stderr ] && echo $"Redirecting to /bin/systemctl ${OPTIONS} ${SERVICE}.service" >/dev/stderr exec /bin/systemctl ${OPTIONS} ${SERVICE}.service fi |