Re: use of $ARGS in systemd unit file by prometheus package

2021-03-02 Thread Greg Wooledge
Andrew Spiers (and...@andrewspiers.net) wrote: > I think EnvironmentFile is just used for setting the environment file > of the running process. > Setting ARGS in /etc/default/prometheus seems to add the value to the > command line arguments, as well as to an environment variable called > ARGS for

Re: use of $ARGS in systemd unit file by prometheus package

2021-03-01 Thread Andrew Spiers
> Hi. > >> ExecStart=/usr/bin/prometheus $ARGS >> >> I know I can simply override the unit file with one in >> /etc/systemd/system, but what if I wanted to use this variable? Where >> would I set it? > > > See "EnvironmentFile" directive above. > Check manual pages for more info: > https://www.free

Re: use of $ARGS in systemd unit file by prometheus package

2021-03-01 Thread IL Ka
Hi. ExecStart=/usr/bin/prometheus $ARGS > > I know I can simply override the unit file with one in > /etc/systemd/system, but what if I wanted to use this variable? Where > would I set it? > See "EnvironmentFile" directive above. Check manual pages for more info: https://www.freedesktop.org/softw

use of $ARGS in systemd unit file by prometheus package

2021-03-01 Thread Andrew Spiers
Prometheus takes some command line arguments to control certain aspects of its operation. The systemd unit file shipped with prometheus includes the line ExecStart=/usr/bin/prometheus $ARGS I know I can simply override the unit file with one in /etc/systemd/system, but what if I wanted to use thi