mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-02 07:31:26 +00:00
* Be able to cope with future changes to Upstart.
svn path=/nixos/trunk/; revision=15312
This commit is contained in:
parent
5ac2532cc7
commit
d9f4475dd5
@ -847,7 +847,7 @@ in
|
||||
gatewayPorts = mkOption {
|
||||
default = "no";
|
||||
description = "
|
||||
Specifies whether remote hosts are allowed to connect to ports forwarded for the client. See man sshd_conf.
|
||||
Specifies whether remote hosts are allowed to connect to ports forwarded for the client. See man sshd_conf.
|
||||
";
|
||||
};
|
||||
};
|
||||
|
@ -35,6 +35,18 @@ fi
|
||||
|
||||
if test "$action" = "switch" -o "$action" = "test"; then
|
||||
|
||||
oldVersion=$(cat /var/run/current-system/upstart-interface-version 2> /dev/null || echo 0)
|
||||
newVersion=$(cat @out@/upstart-interface-version 2> /dev/null || echo 0)
|
||||
|
||||
if test "$oldVersion" -ne "$newVersion"; then
|
||||
cat <<EOF
|
||||
Warning: the new NixOS configuration has an Upstart version that is
|
||||
incompatible with the current version. The new configuration won't
|
||||
take effect until you reboot the system.
|
||||
EOF
|
||||
exit 1
|
||||
fi
|
||||
|
||||
oldEvents=$(readlink -f /etc/event.d || true)
|
||||
newEvents=$(readlink -f @out@/etc/event.d)
|
||||
|
||||
|
@ -408,6 +408,7 @@ rec {
|
||||
pkgs.diffutils
|
||||
pkgs.upstart # for initctl
|
||||
];
|
||||
upstartInterfaceVersion = pkgs.upstart.interfaceVersion;
|
||||
# This attribute is responsible for creating boot entries for
|
||||
# child configuration. They are only (directly) accessible
|
||||
# when the parent configuration is boot default. For example,
|
||||
|
@ -13,6 +13,7 @@ ln -s $upstart $out/upstart
|
||||
|
||||
echo "$kernelParams" > $out/kernel-params
|
||||
echo "$configurationName" > $out/configuration-name
|
||||
echo "$upstartInterfaceVersion" > $out/upstart-interface-version
|
||||
|
||||
mkdir $out/fine-tune
|
||||
ChildCount=0;
|
||||
|
Loading…
Reference in New Issue
Block a user