[systemd-devel] [PATCH v2 1/2] systemd.unit(5): add examples for common tasks
Lennart Poettering
lennart at poettering.net
Tue Jan 27 10:32:08 PST 2015
On Tue, 27.01.15 19:26, Christian Seiler (christian at iwakd.de) wrote:
> I know, but I wanted to have something that was easily understandable at
> first glance that was already set in the original unit that would then
> be overridden. I'll use Nice= instead, that's more likely to be
> used.
Yeah, sounds like the better option.
> >> + <para>The first possibility is to copy the unit
> >> + file to
> >> + <filename>/etc/systemd/system/httpd.service</filename>
> >> + and change the chosen settings:</para>
> >> +
> >> + <programlisting>[Unit]
> >> +Description=Some HTTP server
> >> +After=network.target remote-fs.target sqldb.service <emphasis>memcached.service</emphasis>
> >> +Requires=sqldb.service <emphasis>memcached.service</emphasis>
> >> +ConditionPathExists=<emphasis>/srv/www</emphasis>
> >
> > I wonder if the example should better use AssertionXYZ rather than
> > ConditionXYZ for this?
>
> A right, that's new, I'll use that instead.
>
> Will send second patch after your response to my question.
Uh, which question are you precisely referring to?
Lennart
--
Lennart Poettering, Red Hat
More information about the systemd-devel
mailing list