[systemd-devel] [PATCH] core: downgrade unit type not supported message

Zbigniew Jędrzejewski-Szmek zbyszek at in.waw.pl
Tue Feb 24 20:39:51 PST 2015


On Fri, Feb 20, 2015 at 10:53:28AM +0100, Umut Tezduyar Lindskog wrote:
> Otherwise every daemon reload prints out warnings like:
> 
> systemd[1]: Unit type .busname is not supported on this system.
> systemd[1]: Unit type .swap is not supported on this system.
> ---
>  src/core/manager.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/core/manager.c b/src/core/manager.c
> index 4775219..bc9b7ec 100644
> --- a/src/core/manager.c
> +++ b/src/core/manager.c
> @@ -961,7 +961,7 @@ int manager_enumerate(Manager *m) {
>                  int q;
>  
>                  if (unit_vtable[c]->supported && !unit_vtable[c]->supported(m)) {
> -                        log_info("Unit type .%s is not supported on this system.", unit_type_to_string(c));
> +                        log_debug("Unit type .%s is not supported on this system.", unit_type_to_string(c));
>                          continue;

I think it is correct to print this warning at least once. If unsupported
units are packaged or created by the admin, this is a sign of some mistake.
Maybe the warning should be printed only once?

Zbyszek


More information about the systemd-devel mailing list