3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/modules/system
Eelco Dolstra c45cf3a28e * In the jobs attribute, support a more high-level way of specifying
jobs, e.g. (from the nscd job)

    { name = "nscd";

      description = "Name Service Cache Daemon";

      startOn = "startup";
      stopOn = "shutdown";

      environment = { LD_LIBRARY_PATH = nssModulesPath; };
        
      preStart =
        ''
          mkdir -m 0755 -p /var/run/nscd
          mkdir -m 0755 -p /var/db/nscd
        '';

      exec = "${pkgs.glibc}/sbin/nscd -f ${./nscd.conf} -d 2> /dev/null";
    };

  The Upstart job is generated from this.  The main goal is to provide
  some abstraction from the Upstart syntax.  For instance, this should
  make it easier to upgrade to newer versions of Upstart, to switch to
  an entirely different process management system (e.g. initng or
  launchd), or to test a job independantly from Upstart.  (However the
  startOn and stopOn attributes are tied to Upstart's event model.)

svn path=/nixos/branches/modular-nixos/; revision=16376
2009-07-15 15:24:11 +00:00
..
activation * The menu.lst fragment in the top-level system derivation doesn't 2009-06-10 16:05:25 +00:00
boot * Don't wait for CIFS "devices" (//share/path) to appear since they 2009-06-22 14:44:48 +00:00
etc * Move the /etc generation to modules/system/etc. 2009-05-28 13:17:56 +00:00
upstart * In the jobs attribute, support a more high-level way of specifying 2009-07-15 15:24:11 +00:00
upstart-events Some hacks to support clean shutdowns of VMs that mount the Nix store 2009-06-24 13:33:03 +00:00