Skip to content

Commit

Permalink
Merge pull request #45 from kazeborja/systemd
Browse files Browse the repository at this point in the history
Add EnvironmentFile to service definition
  • Loading branch information
djw8605 authored Jan 19, 2024
2 parents 134b5cb + 1ab15d7 commit 608423c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion config/xrootd-monitoring-shoveler.service
Original file line number Diff line number Diff line change
Expand Up @@ -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
WantedBy=multi-user.target

0 comments on commit 608423c

Please sign in to comment.