[systemd-devel] Restart and RestartSec in packaged .service files
lennart at poettering.net
Thu Sep 1 07:17:22 PDT 2011
On Thu, 01.09.11 11:06, "Jóhann B. Guðmundsson" (johannbg at gmail.com) wrote:
> On 09/01/2011 10:02 AM, Mathieu Bridon wrote:
> >Let's say you want to add Restart=always to foobar.service, waht you'd
> >do is:
> > 1. edit /etc/systemd/system/foobar.service (to overwrite the /lib one)
> > 2. write this in the file:
> > .include /lib/systemd/system/foobar.service
> > Restart=always
> I think this needs to be be cleaned up a bit and introduced as
> Include=/path/to/unit ( as opposed to have .include /path/to/unit )
> and man pages updated accordingly.
.include is right. Include= is not.
Consider ".include" as a meta command, i.e. the same way as in C you
include other files with "#include", and not with "include()".
Lennart Poettering - Red Hat, Inc.
More information about the systemd-devel