Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [PATCH] systemd.eclass: Improve systemd_install_serviced documentation
Date: Tue, 13 Jun 2017 22:58:50
Message-Id: 1497394718.10343.1.camel@gentoo.org
In Reply to: [gentoo-dev] [PATCH] systemd.eclass: Improve systemd_install_serviced documentation by Chris Mayo
1 On nie, 2017-06-11 at 20:23 +0100, Chris Mayo wrote:
2 > Signed-off-by: Chris Mayo <aklhfex@×××××.com>
3 > ---
4 >
5 > Nothing added, just suggesting how it could be made easier to understand.
6 >
7 > Chris
8 >
9 > eclass/systemd.eclass | 10 +++++-----
10 > 1 file changed, 5 insertions(+), 5 deletions(-)
11 >
12 > diff --git a/eclass/systemd.eclass b/eclass/systemd.eclass
13 > index 7e46e80119c..49f7480228b 100644
14 > --- a/eclass/systemd.eclass
15 > +++ b/eclass/systemd.eclass
16 > @@ -178,12 +178,12 @@ systemd_newuserunit() {
17 > }
18 >
19 > # @FUNCTION: systemd_install_serviced
20 > -# @USAGE: <conf-file> [<service.d>]
21 > +# @USAGE: <conf-file> [<service>]
22 > # @DESCRIPTION:
23 > -# Install the file <conf-file> as service.d/00gentoo.conf template.
24 > -# The <service.d> argument specifies the configured service name.
25 > -# If not specified, the configuration file name will be used with .conf
26 > -# suffix stripped (e.g. foo.service.conf -> foo.service).
27 > +# Install <conf-file> as the template <service>.d/00gentoo.conf.
28 > +# If <service> is not specified
29 > +# <conf-file> with the .conf suffix stripped is used
30 > +# (e.g. foo.service.conf -> foo.service.d/00gentoo.conf).
31 > systemd_install_serviced() {
32 > debug-print-function ${FUNCNAME} "${@}"
33 >
34
35 This is meritoriously wrong. The second argument is required to have
36 '.d' suffix, while your help text suggests that '.d' is appended
37 implicitly.
38
39 --
40 Best regards,
41 Michał Górny

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies