nixpkgs/nixos/modules/services/databases
Eelco Dolstra 2b0aea1793 Allow running NixOS services outside of systemd
The attribute ‘config.systemd.services.<service-name>.runner’
generates a script that runs the service outside of systemd.  This is
useful for testing, and also allows NixOS services to be used outside
of NixOS.  For instance, given a configuration file foo.nix:

  { config, pkgs, ... }:

  { services.postgresql.enable = true;
    services.postgresql.package = pkgs.postgresql92;
    services.postgresql.dataDir = "/tmp/postgres";
  }

you can build and run PostgreSQL as follows:

  $ nix-build -A config.systemd.services.postgresql.runner -I nixos-config=./foo.nix
  $ ./result

This will run the service's ExecStartPre, ExecStart, ExecStartPost and
ExecStopPost commands in an appropriate environment.  It doesn't work
well yet for "forking" services, since it can't track the main
process.  It also doesn't work for services that assume they're always
executed by root.
2013-11-18 18:04:17 +01:00
..
4store-endpoint.nix Use the "assertions" option instead of mkAssert 2013-10-30 18:47:44 +01:00
4store.nix Use the "assertions" option instead of mkAssert 2013-10-30 18:47:44 +01:00
firebird.nix firebird.nix: Fix a misplaced } that causes "users" to be outside "config" 2013-10-25 15:52:52 +02:00
memcached.nix Move all of NixOS to nixos/ in preparation of the repository merge 2013-10-10 13:28:20 +02:00
mongodb.nix nixos/mongodb: set static uid to work with #1076 2013-11-07 11:25:14 +01:00
mysql.nix Remove dependencies on the Nixpkgs location 2013-10-23 20:08:23 +02:00
mysql55.nix Remove dependencies on the Nixpkgs location 2013-10-23 20:08:23 +02:00
openldap.nix Move all of NixOS to nixos/ in preparation of the repository merge 2013-10-10 13:28:20 +02:00
postgresql.nix Allow running NixOS services outside of systemd 2013-11-18 18:04:17 +01:00
redis.nix nixos/redis: log to syslog by default 2013-10-28 18:18:24 +01:00
virtuoso.nix Move all of NixOS to nixos/ in preparation of the repository merge 2013-10-10 13:28:20 +02:00