systemd: Use an interface version, just like we have for Upstart

This commit is contained in:
Eelco Dolstra 2012-07-20 15:41:37 -04:00
parent d652ae4253
commit 2547e0e96a

View File

@ -70,6 +70,14 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
# The interface version prevents NixOS from switching to an
# incompatible systemd at runtime. (Switching across reboots is
# fine, of course.) It should be increased whenever systemd changes
# in a backwards-incompatible way. If the interface version of two
# systemd builds is the same, then we can switch between them at
# runtime; otherwise we can't and we need to reboot.
passthru.interfaceVersion = 2;
meta = {
homepage = http://www.freedesktop.org/wiki/Software/systemd;
description = "A system and service manager for Linux";