1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-16 09:53:17 +00:00
nixpkgs/modules/services
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
..
audio * Move the uid/gid mappings into a module. This allows other modules 2009-05-29 14:25:56 +00:00
databases * Got rid of the extraPath field in jobs (use 2009-07-15 11:19:11 +00:00
hardware * Move the uid/gid mappings into a module. This allows other modules 2009-05-29 14:25:56 +00:00
logging * Continued refactoring the tree: moved most Upstart jobs (namely 2009-05-24 23:13:23 +00:00
mail * Move the uid/gid mappings into a module. This allows other modules 2009-05-29 14:25:56 +00:00
misc * Include the NixOS manpages in the system environment. Actually 2009-07-14 16:27:46 +00:00
monitoring * Move the uid/gid mappings into a module. This allows other modules 2009-05-29 14:25:56 +00:00
network-filesystems * Continued refactoring the tree: moved most Upstart jobs (namely 2009-05-24 23:13:23 +00:00
networking * Get rid of the "users" and "groups" fields in jobs. 2009-07-15 11:34:55 +00:00
printing * Refactoring the Upstart module. Got rid of job.extraEtc, it's 2009-07-15 09:06:36 +00:00
scheduling * Move the uid/gid mappings into a module. This allows other modules 2009-05-29 14:25:56 +00:00
system * In the jobs attribute, support a more high-level way of specifying 2009-07-15 15:24:11 +00:00
ttys * Move /etc/issue to the mingetty module. 2009-05-28 11:34:46 +00:00
web-servers * Got rid of the extraPath field in jobs (use 2009-07-15 11:19:11 +00:00
x11 Updated the xserver video drivers list, removing the old via, and putting the new openchrome. 2009-07-11 10:33:42 +00:00