Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #232269

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

From Greg Wooledge <greg@wooledge.org>
Newsgroups linux.debian.user
Subject Re: use of $ARGS in systemd unit file by prometheus package
Date 2021-03-02 16:20 +0100
Message-ID <BOeYx-5gG-7@gated-at.bofh.it> (permalink)
References <BO2NI-61e-3@gated-at.bofh.it> <BO3gJ-6ay-3@gated-at.bofh.it> <BO7aF-bL-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Andrew Spiers (andrew@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 the prometheus process.
> I can't find any mention of this in the systemd or prometheus docs,
> but it works.

Show us the systemd unit file, or a URL that points to it exactly as it
appears on your system.  (Hint: if it's a Debian package, and if you're
using the unmodified Debian systemd unit file, you might be able to
find it on sources.debian.org.  If this is the case, tell us what version
of the Debian package you're using.  For example, buster's is at
<https://sources.debian.org/src/prometheus/2.7.1+ds-3/debian/service/>.)

It might also help if you try "systemctl status prometheus" (or whatever
the unit's name is) and show us what it says.  Just in case the systemd
unit is merely a thin wrapper around a sysv-rc script, as is sometimes
the case.

It's worth noting that the Debian /etc/default/prometheus file from
buster's package
(<https://sources.debian.org/src/prometheus/2.7.1+ds-3/debian/default/>)
explicitly sets a variable named ARGS.

Back to linux.debian.user | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

use of $ARGS in systemd unit file by prometheus package Andrew Spiers <andrew@andrewspiers.net> - 2021-03-02 03:20 +0100
  Re: use of $ARGS in systemd unit file by prometheus package IL Ka <kazakevichilya@gmail.com> - 2021-03-02 03:50 +0100
    Re: use of $ARGS in systemd unit file by prometheus package Andrew Spiers <andrew@andrewspiers.net> - 2021-03-02 08:00 +0100
      Re: use of $ARGS in systemd unit file by prometheus package Greg Wooledge <greg@wooledge.org> - 2021-03-02 16:20 +0100

csiph-web