diff options
author | LinkTed <link.ted@mailbox.org> | 2021-12-24 19:43:36 +0100 |
---|---|---|
committer | Mike Frysinger <vapier@gmail.com> | 2022-03-05 13:14:59 -0500 |
commit | 6034866d1c74d5a23eb9f3e0ebf40c9d278aac93 (patch) | |
tree | e4ee7f603ae86026fed261011dab7997b615c81b | |
parent | 5e127608c3e7327a849b284781c2d939551c4004 (diff) |
Use consistent args passing in start-stop-daemon
-rw-r--r-- | sh/start-stop-daemon.sh | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/sh/start-stop-daemon.sh b/sh/start-stop-daemon.sh index 3c2fd32f..cbfd1ca8 100644 --- a/sh/start-stop-daemon.sh +++ b/sh/start-stop-daemon.sh @@ -38,10 +38,6 @@ 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. @@ -51,8 +47,8 @@ ssd_start() ${directory:+--chdir} $directory \ ${output_log+--stdout} $output_log \ ${error_log+--stderr} $error_log \ - ${output_logger_arg} \ - ${error_logger_arg} \ + ${output_logger:+--stdout-logger} "$output_logger" \ + ${error_logger:+--stderr-logger} "$error_logger" \ ${capabilities+--capabilities} "$capabilities" \ ${secbits:+--secbits} "$secbits" \ ${no_new_privs:+--no-new-privs} \ |