nixpkgs/modules/system
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 * Improved Upstart job handling in switch-to-configuration. It no 2012-03-18 01:53:35 +00:00
boot * Use boot.kernelModules everywhere instead of explicit calls to 2012-03-17 17:26:17 +00:00
etc Reverting revisions 30103-30106: "always set nixpkgs.config.{state,store}Dir", etc. 2011-10-30 15:19:58 +00:00
upstart * Improved Upstart job handling in switch-to-configuration. It no 2012-03-18 01:53:35 +00:00
upstart-events modules/system/upstart-events/shutdown.nix: refer to bash binary with full path 2011-12-30 16:57:39 +00:00