diff options
Diffstat (limited to 'net-analyzer/chronograf/files')
-rw-r--r-- | net-analyzer/chronograf/files/chronograf.confd | 16 | ||||
-rw-r--r-- | net-analyzer/chronograf/files/chronograf.rc | 22 |
2 files changed, 38 insertions, 0 deletions
diff --git a/net-analyzer/chronograf/files/chronograf.confd b/net-analyzer/chronograf/files/chronograf.confd new file mode 100644 index 000000000000..a70c355c6fb6 --- /dev/null +++ b/net-analyzer/chronograf/files/chronograf.confd @@ -0,0 +1,16 @@ +#The convention in this file is to show the default setting commented +#out. +#To change the setting, uncomment it then change the value. + +#This is the chronograf error log: +#error_log="/var/log/chronograf/chronograf.log" + +#This is the chronograf output log: +#output_log="/dev/null" + +# If you set this to yes, chronograf will report anonymous usage stats +# to influx data. +#report_usage_stats="no" + +# Extra options to pass to chronograf: +#chronograf_opts="" diff --git a/net-analyzer/chronograf/files/chronograf.rc b/net-analyzer/chronograf/files/chronograf.rc new file mode 100644 index 000000000000..335240dbf269 --- /dev/null +++ b/net-analyzer/chronograf/files/chronograf.rc @@ -0,0 +1,22 @@ +#!/sbin/openrc-run + +command=/usr/bin/chronograf +command_args="${chronograf_opts}" +command_background=yes +command_user=chronograf:chronograf +make_pidfile=yes +pidfile=/var/run/chronografd.pid + +# Logging +error_log="${error_log:-/var/log/chronograf/chronograf.log}" +output_log="${output_log:-/dev/null}" + +start_pre() { + export HOST=127.0.0.1 + export PORT=8888 + export BOLT_PATH=/var/lib/chronograf/chronograf-v1.db + export CANNED_PATH=/usr/share/chronograf/canned + export RESOURCES_PATH=/usr/share/chronograf/RESOURCES + yesno "${report_usage_stats:-no}" || export REPORTING_DISABLED=yes + return 0 +} |