summaryrefslogtreecommitdiff
path: root/www/garage/files
diff options
context:
space:
mode:
Diffstat (limited to 'www/garage/files')
-rw-r--r--www/garage/files/garage.in10
-rw-r--r--www/garage/files/pkg-message.in8
2 files changed, 17 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"
diff --git a/www/garage/files/pkg-message.in b/www/garage/files/pkg-message.in
index b0b01e23405f..91ae1e26635a 100644
--- a/www/garage/files/pkg-message.in
+++ b/www/garage/files/pkg-message.in
@@ -1,5 +1,13 @@
[
{ type: upgrade
+ maximum_version: "1.2.0"
+ message: <<EOM
+ Garage now supports logging to syslog. To log to syslog, please specify in rc.conf(5):
+
+ garage_log_file=syslog
+EOM
+}
+{ type: upgrade
maximum_version: "0.9"
message: <<EOM
To upgrade from 0.8.x to 0.9.0, please refer to the upgrade instructions at: