nixpkgs-suyu/modules/system/activation
Eelco Dolstra 3495a773f9 * Improved Upstart job handling in switch-to-configuration. It no
longer compares the current configuration to the previous
  configuration, but instead compares the current Upstart state to the
  intended state.  Thus, if the switch script is interrupted, running
  nixos-rebuild again will resume starting/stopping Upstart jobs where
  the previous run left off.

  We determine if an Upstart job has changed by having the pre-start
  script of each Upstart job put a symlink to its .conf file in
  /var/run/upstart-jobs.  So if this symlink differs from the target
  of /etc/init/<job>.conf, then the job has changed.  This also
  prevents multiple restarts of dependent jobs.  E.g., if job B has
  "start on started A" and "stop on stopping A", then restarting A
  will cause B to be restarted, so B shouldn't B restarted a second
  time.

  We only start jobs that are not running if 1) they're tasks that
  have been previously run (like mountall); or 2) they're jobs that
  have a "start on" condition.  This seems a reasonable heuristic.

svn path=/nixos/trunk/; revision=33222
2012-03-18 01:53:35 +00:00
..
activation-script.nix * Improved Upstart job handling in switch-to-configuration. It no 2012-03-18 01:53:35 +00:00
no-clone.nix Replace mkOverride by its alias mkOverrideTemplate to remove the unused 2010-09-03 19:10:59 +00:00
switch-to-configuration.sh * Improved Upstart job handling in switch-to-configuration. It no 2012-03-18 01:53:35 +00:00
top-level.nix Revert r33139 2012-03-16 12:01:08 +00:00