aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xservice2
1 files changed, 1 insertions, 1 deletions
diff --git a/service b/service
index c48f88b1..325883de 100755
--- a/service
+++ b/service
@@ -146,7 +146,7 @@ if ! is_ignored_file "$service" && [[ -f $servicedir/$service ]]; then
env -i PATH="$PATH" TERM="$TERM" SYSTEMCTL_IGNORE_DEPENDENCIES=${SYSTEMCTL_IGNORE_DEPENDENCIES} SYSTEMCTL_SKIP_REDIRECT=${SYSTEMCTL_SKIP_REDIRECT} $debug "$servicedir/$service" $options
exit $?
elif [[ -f /lib/systemd/system/"$service".service ]] && /bin/mountpoint -q /sys/fs/cgroup/systemd; then
- 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
else
echo "Cannot find $service service"