[systemd-devel] [PATCH 1/2] shared/install: ignore ENOENT from unit_file_can_install

Lennart Poettering lennart at poettering.net
Mon Sep 10 16:16:36 PDT 2012

On Tue, 11.09.12 00:53, Lennart Poettering (lennart at poettering.net) wrote:

> On Mon, 03.09.12 17:13, Dave Reisner (dreisner at archlinux.org) wrote:
> > When a service file contains an .include directive with a path that
> > doesn't exist, systemctl list-unit-files will simply error out with:
> > 
> > Failed to get unit file list: No such file or directory
> Hmm, we probably should log about invalid files and add them in a new
> state "invalid" or so to the returned service list, rather than just
> excluding this single error condition.
> I'll try to cook up a patch for this.

Done, and it's in git. Please check if this does everything you need.



Lennart Poettering - Red Hat, Inc.

More information about the systemd-devel mailing list