diff options
Diffstat (limited to 'www/garage/files/garage.in')
-rw-r--r-- | www/garage/files/garage.in | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/www/garage/files/garage.in b/www/garage/files/garage.in index ebce1977d547..60ef7deb5a85 100644 --- a/www/garage/files/garage.in +++ b/www/garage/files/garage.in @@ -25,7 +25,15 @@ command=/usr/sbin/daemon procname="%%PREFIX%%/bin/${name}" required_files=${garage_config} pidfile=/var/run/${name}.pid -command_args="-p $pidfile -H -o ${garage_log_file} -f $procname -c ${garage_config} server" +command_args= + +if [ "${garage_log_file}" = syslog ]; then + garage_env="${garage_env} GARAGE_LOG_TO_SYSLOG=1" +else + command_args="-o ${garage_log_file}" +fi + +command_args="${command_args} -p $pidfile -H -f $procname -c ${garage_config} server" status_cmd="$procname -c ${garage_config} status" |