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


Groups > linux.debian.user > #232252

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

From IL Ka <kazakevichilya@gmail.com>
Newsgroups linux.debian.user
Subject Re: use of $ARGS in systemd unit file by prometheus package
Date 2021-03-02 03:50 +0100
Message-ID <BO3gJ-6ay-3@gated-at.bofh.it> (permalink)
References <BO2NI-61e-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

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/software/systemd/man/systemd.service.html
and
https://www.freedesktop.org/software/systemd/man/systemd.exec.html

Back to linux.debian.user | Previous | Next — Previous in thread | Next 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