Gentoo Archives: gentoo-dev

From: Pacho Ramos <pacho@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [PATCH systemd.eclass] Introduce systemd_install_serviced().
Date: Sun, 08 Sep 2013 15:41:01
Message-Id: 1378654852.2175.14.camel@localhost
In Reply to: Re: [gentoo-dev] [PATCH systemd.eclass] Introduce systemd_install_serviced(). by Gilles Dartiguelongue
1 El dom, 08-09-2013 a las 17:14 +0200, Gilles Dartiguelongue escribió:
2 > Le dimanche 08 septembre 2013 à 13:12 +0200, Michał Górny a écrit :
3 > > This function can be used to install service configuration templates.
4 > > Usage:
5 > >
6 > > systemd_install_serviced "${FILESDIR}"/foo.service.conf
7 > >
8 > > or:
9 > >
10 > > systemd_install_serviced "${FILESDIR}"/barbaz foo.service
11 > >
12 > > with the latter specifying related service name explicitly, former
13 > > expecting it to match ${basename%.conf}. The files are installed as:
14 > >
15 > > /etc/systemd/system/foo.service.d/00gentoo.conf
16 > >
17 > > They should be commented out templates that users can use to customize
18 > > the service easily.
19 >
20 > Looks like a good idea, do you have a few example packages where that
21 > could be used ?
22
23 For example distcc or ntp will use them to tell them what IPs should be
24 allowed or what servers should be used to sync time. This are for some
25 cases where we need to let people pass some options to the services
26 without using conf.d file (that some times is not fully compatible with
27 systemd).