diff options
author | William Hubbs <w.d.hubbs@gmail.com> | 2018-06-15 17:44:39 -0500 |
---|---|---|
committer | William Hubbs <w.d.hubbs@gmail.com> | 2018-06-15 17:44:39 -0500 |
commit | a097933edab9d7221df1831e098415d604437c98 (patch) | |
tree | ded08f3b45a8c0e96b8e4145c03fb9fc8654a9c0 /sh | |
parent | a6f5b1bb63070c24145df72040fa7b465948003c (diff) |
sh/start-stop-daemon.sh: fix processing of the logger arguments
Diffstat (limited to 'sh')
-rw-r--r-- | sh/start-stop-daemon.sh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sh/start-stop-daemon.sh b/sh/start-stop-daemon.sh index 69666ff7..e68b47ef 100644 --- a/sh/start-stop-daemon.sh +++ b/sh/start-stop-daemon.sh @@ -38,6 +38,10 @@ ssd_start() service_inactive && _inactive=true mark_service_inactive fi + [ -n "$output_logger" ] && + output_logger_arg="--stdout-logger \"$output_logger\"" + [ -n "$error_logger" ] && + error_logger_arg="--stderr-logger \"$error_logger\"" #the eval call is necessary for cases like: # command_args="this \"is a\" test" # to work properly. @@ -47,8 +51,8 @@ ssd_start() ${directory:+--chdir} $directory \ ${output_log+--stdout} $output_log \ ${error_log+--stderr} $error_log \ - ${output_logger+--stdout-logger} \"$output_logger\" \ - ${error_logger+--stderr-logger} \"$error_logger\" \ + ${output_logger_arg} \ + ${error_logger_arg} \ ${procname:+--name} $procname \ ${pidfile:+--pidfile} $pidfile \ ${command_user+--user} $command_user \ |