Merge pull request #4481 from poettering/perpetual
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 3 Nov 2016 01:03:26 +0000 (21:03 -0400)
committerGitHub <noreply@github.com>
Thu, 3 Nov 2016 01:03:26 +0000 (21:03 -0400)
Add "perpetual" unit concept, sysctl fixes, networkd fixes, systemctl color fixes, nspawn discard.

1  2 
src/core/unit.c
src/core/unit.h
src/systemctl/systemctl.c

diff --cc src/core/unit.c
@@@ -322,10 -338,10 +340,10 @@@ bool unit_check_gc(Unit *u) 
  
          /* But we keep the unit object around for longer when it is
           * referenced or configured to not be gc'ed */
 -        if (state != UNIT_INACTIVE)
 +        if (!inactive)
                  return true;
  
-         if (u->no_gc)
+         if (u->perpetual)
                  return true;
  
          if (u->refs)
diff --cc src/core/unit.h
Simple merge
Simple merge