conf: Read global config from $(sysconfdir)/bmon.conf

Signed-off-by: Thomas Graf <tgraf@suug.ch>
This commit is contained in:
Thomas Graf 2014-07-06 13:33:12 +02:00
parent b34be16240
commit be8ef18b74

View File

@ -531,7 +531,7 @@ void configfile_read(void)
if (configfile) if (configfile)
conf_read(configfile, 1); conf_read(configfile, 1);
else { else {
conf_read(SYSCONFDIR "/bmonrc", 0); conf_read(SYSCONFDIR "/bmon.conf", 0);
if (getenv("HOME")) { if (getenv("HOME")) {
char path[FILENAME_MAX+1]; char path[FILENAME_MAX+1];