diff --git a/README.md b/README.md index aaf701a..4eaa5cd 100644 --- a/README.md +++ b/README.md @@ -92,6 +92,9 @@ An example configuration file, [config.yaml](config/config.yaml) is in the repo. file has a corresponding environment variable, listed below. The environment variables are useful for deployment in docker or kubernetes. By default, the config is stored in `/etc/xrootd-monitoring-shoveler`. +When running as a daemon, environment variables can still be used for configuration. The service will be looking for +them under `/etc/sysconfig/xrootd-monitoring-shoveler`. + Environment variables: * SHOVELER_MQ diff --git a/config/xrootd-monitoring-shoveler.service b/config/xrootd-monitoring-shoveler.service index cd6fd05..c4d2aca 100644 --- a/config/xrootd-monitoring-shoveler.service +++ b/config/xrootd-monitoring-shoveler.service @@ -3,6 +3,7 @@ Description=XRootD Monitoring Shoveler for sending UDP Monitoring packets to a m [Service] ExecStart=/usr/bin/xrootd-monitoring-shoveler +EnvironmentFile=-/etc/sysconfig/xrootd-monitoring-shoveler [Install] -WantedBy=multi-user.target \ No newline at end of file +WantedBy=multi-user.target