* jobAttrs -> jobs.

svn path=/nixos/trunk/; revision=17769
wip/yesman
Eelco Dolstra 15 years ago
parent 40c9057a49
commit eba8f94069
  1. 2
      modules/services/audio/alsa.nix
  2. 2
      modules/services/audio/pulseaudio.nix
  3. 2
      modules/services/databases/mysql.nix
  4. 2
      modules/services/databases/postgresql.nix
  5. 2
      modules/services/hardware/acpid.nix
  6. 2
      modules/services/hardware/hal.nix
  7. 2
      modules/services/hardware/udev.nix
  8. 2
      modules/services/logging/klogd.nix
  9. 2
      modules/services/logging/syslogd.nix
  10. 2
      modules/services/mail/dovecot.nix
  11. 2
      modules/services/mail/postfix.nix
  12. 2
      modules/services/misc/autofs.nix
  13. 2
      modules/services/misc/disnix.nix
  14. 2
      modules/services/misc/gpsd.nix
  15. 2
      modules/services/misc/nix-daemon.nix
  16. 2
      modules/services/misc/nixos-manual.nix
  17. 2
      modules/services/misc/rogue.nix
  18. 2
      modules/services/misc/synergy.nix
  19. 2
      modules/services/monitoring/nagios/default.nix
  20. 2
      modules/services/monitoring/zabbix-agent.nix
  21. 2
      modules/services/monitoring/zabbix-server.nix
  22. 8
      modules/services/network-filesystems/nfs-kernel.nix
  23. 8
      modules/services/network-filesystems/samba.nix
  24. 2
      modules/services/networking/avahi-daemon.nix
  25. 2
      modules/services/networking/bind.nix
  26. 2
      modules/services/networking/bitlbee.nix
  27. 2
      modules/services/networking/ddclient.nix
  28. 2
      modules/services/networking/dhclient.nix
  29. 2
      modules/services/networking/dhcpd.nix
  30. 2
      modules/services/networking/ejabberd.nix
  31. 2
      modules/services/networking/firewall.nix
  32. 2
      modules/services/networking/gnunet.nix
  33. 2
      modules/services/networking/gw6c.nix
  34. 2
      modules/services/networking/ifplugd.nix
  35. 2
      modules/services/networking/ircd-hybrid.nix
  36. 2
      modules/services/networking/ntpd.nix
  37. 2
      modules/services/networking/openfire.nix
  38. 2
      modules/services/networking/openvpn.nix
  39. 2
      modules/services/networking/portmap.nix
  40. 2
      modules/services/networking/privoxy.nix
  41. 2
      modules/services/networking/ssh/lshd.nix
  42. 2
      modules/services/networking/ssh/sshd.nix
  43. 2
      modules/services/networking/vsftpd.nix
  44. 2
      modules/services/networking/wpa_supplicant.nix
  45. 2
      modules/services/networking/xinetd.nix
  46. 2
      modules/services/printing/cupsd.nix
  47. 2
      modules/services/scheduling/atd.nix
  48. 2
      modules/services/scheduling/cron.nix
  49. 2
      modules/services/scheduling/fcron.nix
  50. 2
      modules/services/system/dbus.nix
  51. 2
      modules/services/system/nscd.nix
  52. 2
      modules/services/system/uptimed.nix
  53. 2
      modules/services/ttys/gpm.nix
  54. 2
      modules/services/ttys/mingetty.nix
  55. 2
      modules/services/web-servers/apache-httpd/default.nix
  56. 2
      modules/services/web-servers/jboss.nix
  57. 2
      modules/services/web-servers/tomcat.nix
  58. 2
      modules/services/x11/xfs.nix
  59. 2
      modules/services/x11/xserver.nix
  60. 2
      modules/system/upstart-events/ctrl-alt-delete.nix
  61. 2
      modules/system/upstart-events/halt.nix
  62. 2
      modules/system/upstart-events/maintenance-shell.nix
  63. 5
      modules/system/upstart/upstart.nix
  64. 2
      modules/tasks/filesystems.nix
  65. 2
      modules/tasks/kbd.nix
  66. 2
      modules/tasks/lvm.nix
  67. 2
      modules/tasks/network-interfaces.nix
  68. 2
      modules/tasks/swap.nix
  69. 2
      modules/tasks/swraid.nix
  70. 2
      modules/tasks/tty-backgrounds.nix
  71. 2
      modules/testing/test-instrumentation.nix

@ -45,7 +45,7 @@ in
gid = config.ids.gids.audio;
};
jobAttrs.alsa =
jobs.alsa =
{ startOn = "udev";
preStart =

@ -62,7 +62,7 @@ in
inherit gid;
};
jobAttrs.pulseaudio =
jobs.pulseaudio =
{ description = "PulseAudio system-wide server";
startOn = "startup";

@ -72,7 +72,7 @@ in
environment.systemPackages = [mysql];
jobAttrs.mysql =
jobs.mysql =
{ description = "MySQL server";
startOn = "filesystems";

@ -113,7 +113,7 @@ in
environment.systemPackages = [postgresql];
jobAttrs.postgresql =
jobs.postgresql =
{ description = "PostgreSQL server";
startOn = "${startDependency}/started";

@ -76,7 +76,7 @@ in
config = mkIf config.powerManagement.enable {
jobAttrs.acpid =
jobs.acpid =
{ description = "ACPI daemon";
startOn = "udev";

@ -64,7 +64,7 @@ in
gid = config.ids.gids.haldaemon;
};
jobAttrs.hal =
jobs.hal =
{ description = "HAL daemon";
# !!! TODO: make sure that HAL starts after acpid,

@ -152,7 +152,7 @@ in
services.udev.packages = [extraUdevRules];
jobAttrs.udev =
jobs.udev =
{ startOn = "startup";
stopOn = "shutdown";

@ -10,7 +10,7 @@ in
{
jobAttrs.klogd =
jobs.klogd =
{ description = "Kernel log daemon";
startOn = "syslogd";

@ -47,7 +47,7 @@ in
config = {
jobAttrs.syslogd =
jobs.syslogd =
{ description = "Syslog daemon";
startOn = "udev";

@ -113,7 +113,7 @@ in
gid = config.ids.gids.dovecot;
};
jobAttrs.dovecot =
jobs.dovecot =
{ description = "Dovecot IMAP/POP3 server";
startOn = "${startingDependency}/started";

@ -275,7 +275,7 @@ in
}
];
jobAttrs.postfix =
jobs.postfix =
# I copy _lots_ of shipped configuration filed
# that can be left as is. I am afraid the exact
# will list slightly change in next Postfix

@ -72,7 +72,7 @@ in
source = pkgs.writeText "auto.master" cfg.autoMaster;
};
jobAttrs.autofs =
jobs.autofs =
{ description = "Filesystem automounter";
startOn = "network-interfaces/started";

@ -36,7 +36,7 @@ in
services.dbus.enable = true;
services.dbus.packages = [ pkgs.disnix ];
jobAttrs.disnix =
jobs.disnix =
{ description = "Disnix server";
startOn = "dbus";

@ -85,7 +85,7 @@ in
inherit gid;
};
jobAttrs.gpsd =
jobs.gpsd =
{ description = "GPSD daemon";
startOn = "network-interfaces/started";

@ -188,7 +188,7 @@ in
target = "nix.machines";
};
jobAttrs.nixDaemon =
jobs.nixDaemon =
{ startOn = "startup";
script =

@ -72,7 +72,7 @@ in
boot.extraTTYs = mkIf cfg.showManual [cfg.ttyNumber];
jobAttrs = mkIf cfg.showManual
jobs = mkIf cfg.showManual
{ nixosManual =
{ name = "nixos-manual";

@ -40,7 +40,7 @@ in
boot.extraTTYs = [ cfg.tty ];
jobAttrs.rogue =
jobs.rogue =
{ description = "Rogue dungeon crawling game";
startOn = "udev";

@ -68,7 +68,7 @@ in
config = {
jobAttrs =
jobs =
optionalAttrs cfgC.enable
{ synergyClient =

@ -158,7 +158,7 @@ in
environment.systemPackages = [ pkgs.nagios ];
jobAttrs.nagios =
jobs.nagios =
{ # Run `nagios -v' to check the validity of the configuration file so
# that a nixos-rebuild fails *before* we kill the running Nagios
# daemon.

@ -64,7 +64,7 @@ in
description = "Zabbix daemon user";
};
jobAttrs.zabbix_agent =
jobs.zabbix_agent =
{ #name = "zabbix-agent"; !!! mkIf bug
description = "Zabbix agent daemon";

@ -51,7 +51,7 @@ in
description = "Zabbix daemon user";
};
jobAttrs.zabbix_server =
jobs.zabbix_server =
{ #name = "zabbix-server"; !!! mkIf bug
description = "Zabbix server daemon";

@ -76,7 +76,7 @@ in
target = "exports";
};
jobAttrs.nfs_kernel_exports =
jobs.nfs_kernel_exports =
{ name = "nfs-kernel-exports";
description = "Kernel NFS server";
@ -106,7 +106,7 @@ in
'';
};
jobAttrs.nfs_kernel_nfsd =
jobs.nfs_kernel_nfsd =
{ name = "nfs-kernel-nfsd";
description = "Kernel NFS server";
@ -117,7 +117,7 @@ in
exec = "${pkgs.nfsUtils}/sbin/rpc.nfsd ${if cfg.hostName != null then "-H ${cfg.hostName}" else ""} ${builtins.toString cfg.nproc}";
};
jobAttrs.nfs_kernel_mountd =
jobs.nfs_kernel_mountd =
{ name = "nfs-kernel-mountd";
description = "Kernel NFS server - mount daemon";
@ -128,7 +128,7 @@ in
exec = "${pkgs.nfsUtils}/sbin/rpc.mountd -F -f ${exports}";
};
jobAttrs.nfs_kernel_statd =
jobs.nfs_kernel_statd =
{ name = "nfs-kernel-statd";
description = "Kernel NFS server - Network Status Monitor";

@ -164,7 +164,7 @@ in
});
# Dummy job to start the real Samba daemons (nmbd, smbd, winbindd).
jobAttrs.sambaControl =
jobs.sambaControl =
{ name = "samba";
description = "Samba server";
@ -176,11 +176,11 @@ in
# nmbd says "standard input is not a socket, assuming -D option",
# but using -i makes it stay in foreground (?)
jobAttrs.nmbd = daemonJob "nmbd" " -i -F";
jobs.nmbd = daemonJob "nmbd" " -i -F";
jobAttrs.smbd = daemonJob "smbd" " -i -F";
jobs.smbd = daemonJob "smbd" " -i -F";
jobAttrs.winbindd = daemonJob "winbindd" " -F";
jobs.winbindd = daemonJob "winbindd" " -F";
};

@ -115,7 +115,7 @@ in
environment.systemPackages = [ avahi ];
jobAttrs.avahi_daemon =
jobs.avahi_daemon =
{ name = "avahi-daemon";
startOn = "network-interfaces/started";

@ -105,7 +105,7 @@ in
config = mkIf config.services.bind.enable {
jobAttrs.bind =
jobs.bind =
{ description = "BIND name server job";
preStart =

@ -64,7 +64,7 @@ in
gid = config.ids.gids.bitlbee;
};
jobAttrs.bitlbee =
jobs.bitlbee =
{ description = "BitlBee IRC to other chat networks gateway";
startOn = "network-interfaces/started";

@ -110,7 +110,7 @@ in
home = stateDir;
};
jobAttrs.ddclient =
jobs.ddclient =
{ name = "ddclient";
startOn = "startup";

@ -61,7 +61,7 @@ in
config = mkIf config.networking.useDHCP {
jobAttrs.dhclient =
jobs.dhclient =
{ startOn = "network-interfaces/started";
stopOn = "network-interfaces/stop";

@ -108,7 +108,7 @@ in
config = mkIf config.services.dhcpd.enable {
jobAttrs.dhcpd =
jobs.dhcpd =
{ description = "DHCP server";
startOn = "network-interfaces/started";

@ -50,7 +50,7 @@ in
config = mkIf cfg.enable {
jobAttrs.ejabberd =
jobs.ejabberd =
{ description = "EJabberd server";
startOn = "network-interface/started";

@ -78,7 +78,7 @@ in
environment.systemPackages = [pkgs.iptables];
jobAttrs.firewall =
jobs.firewall =
{ startOn = "network-interfaces/started";
preStart =

@ -191,7 +191,7 @@ in
home = "/var/empty";
};
jobAttrs.gnunetd =
jobs.gnunetd =
{ description = "The GNUnet Daemon";
startOn = "network-interfaces/started";

@ -129,7 +129,7 @@ in
config = mkIf cfg.enable {
jobAttrs.gw6c =
jobs.gw6c =
{ description = "Gateway6 client";
startOn = if cfg.autorun then "network-interfaces/started" else "";

@ -55,7 +55,7 @@ in
config = mkIf config.networking.interfaceMonitor.enable {
jobAttrs.ifplugd =
jobs.ifplugd =
{ description = "Network interface connectivity monitor";
startOn = "network-interfaces/started";

@ -117,7 +117,7 @@ in
users.extraGroups = singleton
{ name = "ircd"; };
jobAttrs.ircd_hybrid =
jobs.ircd_hybrid =
{ # name = "ircd-hybrid"; !!! mkIf bug
description = "IRCD Hybrid server";

@ -70,7 +70,7 @@ in
home = stateDir;
};
jobAttrs.ntpd =
jobs.ntpd =
{ description = "NTP daemon";
startOn = "ip-up";

@ -49,7 +49,7 @@ in
message = "openfire assertion failed";
};
jobAttrs.openfire =
jobs.openfire =
{ description = "OpenFire XMPP server";
startOn = "${startDependency}/started";

@ -121,7 +121,7 @@ in
config = mkIf cfg.enable {
jobAttrs = listToAttrs (map (c: nameValuePair "openvpn-${cfg.id}" (makeOpenVPNJob c)) cfg.servers);
jobs = listToAttrs (map (c: nameValuePair "openvpn-${cfg.id}" (makeOpenVPNJob c)) cfg.servers);
};

@ -63,7 +63,7 @@ in
inherit gid;
};
jobAttrs.portmap =
jobs.portmap =
{ description = "ONC RPC portmap";
startOn = "network-interfaces/started";

@ -77,7 +77,7 @@ in
home = stateDir;
};
jobAttrs.privoxy =
jobs.privoxy =
{ name = "privoxy";
startOn = "startup";

@ -116,7 +116,7 @@ in
config = mkIf cfg.enable {
jobAttrs.lshd =
jobs.lshd =
{ description = "GNU lshd SSH2 daemon";
startOn = "network-interfaces/started";

@ -108,7 +108,7 @@ in
home = "/var/empty";
};
jobAttrs.sshd = {
jobs.sshd = {
description = "OpenSSH server";

@ -99,7 +99,7 @@ in
gid = config.ids.gids.ftp;
};
jobAttrs.vsftpd =
jobs.vsftpd =
{ description = "vsftpd server";
startOn = "network-interfaces/started";

@ -37,7 +37,7 @@ in
environment.systemPackages = [pkgs.wpa_supplicant];
jobAttrs.wpa_supplicant =
jobs.wpa_supplicant =
{ startOn = "network-interfaces/started";
stopOn = "network-interfaces/stop";

@ -119,7 +119,7 @@ in
config = mkIf cfg.enable {
jobAttrs.xinetd =
jobs.xinetd =
{ description = "xinetd server";
startOn = "network-interfaces/started";

@ -155,7 +155,7 @@ in
}
];
jobAttrs.cupsd =
jobs.cupsd =
{ description = "CUPS printing daemon";
startOn = "network-interfaces/started";

@ -63,7 +63,7 @@ in
gid = config.ids.gids.atd;
};
jobAttrs.atd =
jobs.atd =
{ description = "at daemon (atd)";
startOn = "startup";

@ -66,7 +66,7 @@ in
environment.systemPackages = [pkgs.cron];
jobAttrs.cron =
jobs.cron =
{ description = "Cron daemon";
startOn = "startup";

@ -97,7 +97,7 @@ in
environment.systemPackages = [ pkgs.fcron ];
jobAttrs.fcron =
jobs.fcron =
{ description = "fcron daemon";
startOn = "startup";

@ -113,7 +113,7 @@ in
gid = config.ids.gids.messagebus;
};
jobAttrs.dbus =
jobs.dbus =
{ startOn = "udev";
stopOn = "shutdown";

@ -17,7 +17,7 @@ in
description = "Name service cache daemon user";
};
jobAttrs.nscd =
jobs.nscd =
{ description = "Name Service Cache Daemon";
startOn = "startup";

@ -49,7 +49,7 @@ in
home = stateDir;
};
jobAttrs.uptimed =
jobs.uptimed =
{ description = "Uptimed daemon";
startOn = "startup";

@ -38,7 +38,7 @@ in
config = mkIf cfg.enable {
jobAttrs.gpm =
jobs.gpm =
{ description = "General purpose mouse";
startOn = "udev";

@ -53,7 +53,7 @@ with pkgs.lib;
config = {
# Generate a separate job for each tty.
jobAttrs = listToAttrs (map (tty: nameValuePair tty {
jobs = listToAttrs (map (tty: nameValuePair tty {
startOn = "udev";

@ -559,7 +559,7 @@ in
environment.systemPackages = [httpd] ++ concatMap (svc: svc.extraPath) allSubservices;
jobAttrs.httpd =
jobs.httpd =
{ # Statically verify the syntactic correctness of the generated
# httpd.conf. !!! this is impure! It doesn't just check for
# syntax, but also whether the Apache user/group exist,

@ -70,7 +70,7 @@ in
config = mkIf config.services.jboss.enable {
jobAttrs.jboss =
jobs.jboss =
{ description = "JBoss server";
exec = "${jbossService}/bin/control start";

@ -101,7 +101,7 @@ in
home = "/homeless-shelter";
};
jobAttrs.tomcat =
jobs.tomcat =
{ description = "Apache Tomcat server";
startOn = "network-interface/started";

@ -40,7 +40,7 @@ in
message = "Please enable fontDir (fonts.enableFontDir) to use xfs.";
};
jobAttrs.xfs =
jobs.xfs =
{ description = "X Font Server";
startOn = "${startingDependency}/started";

@ -348,7 +348,7 @@ in
services.hal.packages = halConfigFiles;
jobAttrs.xserver =
jobs.xserver =
{ startOn = if cfg.autorun then "hal" else "never";
environment =

@ -3,7 +3,7 @@
###### implementation
{
jobAttrs.ctrl_alt_delete =
jobs.ctrl_alt_delete =
{ name = "ctrl-alt-delete";
startOn = "ctrlaltdel";

@ -116,6 +116,6 @@ let
in
{
jobAttrs = listToAttrs (map (n: nameValuePair "sys-${n}" (jobFun n))
jobs = listToAttrs (map (n: nameValuePair "sys-${n}" (jobFun n))
[ "reboot" "halt" "system-halt" "power-off" ] );
}

@ -3,7 +3,7 @@
###### implementation
{
jobAttrs.maintenance_shell =
jobs.maintenance_shell =
{ name = "maintenance-shell";
startOn = [ "maintenance" "stalled" ];

@ -73,10 +73,9 @@ let
echo "$jobText" > $out/etc/event.d/${job.name}
'';
jobs =
[pkgs.upstart] # for the built-in logd job
++ map (job: job.upstartPkg) (attrValues config.jobAttrs);
++ map (job: job.upstartPkg) (attrValues config.jobs);
# Create an etc/event.d directory containing symlinks to the
# specified list of Upstart job files.
@ -249,7 +248,7 @@ in
options = {
jobAttrs = mkOption {
jobs = mkOption {
default = {};
description = ''
This option defines the system jobs started and managed by the

@ -233,7 +233,7 @@ in
# Add the mount helpers to the system path so that `mount' can find them.
environment.systemPackages = [pkgs.ntfs3g pkgs.mount_cifs pkgs.nfsUtils];
jobAttrs.filesystems =
jobs.filesystems =
{ startOn = [ "startup" "new-devices" "ip-up" ];
script = task;

@ -56,7 +56,7 @@ in
environment.systemPackages = [pkgs.kbd];
jobAttrs.kbd =
jobs.kbd =
{ description = "Keyboard / console initialisation";
startOn = "udev";

@ -6,7 +6,7 @@
config = {
jobAttrs.lvm =
jobs.lvm =
{ startOn = " udev"; # !!! or on new-devices
script =

@ -132,7 +132,7 @@ in
pkgs.wirelesstools
];
jobAttrs.networkInterfaces =
jobs.networkInterfaces =
{ name = "network-interfaces";
startOn = "udev";

@ -66,7 +66,7 @@ in
config = {
jobAttrs.swap =
jobs.swap =
{ task = true;
startOn = ["startup" "new-devices"];

@ -12,7 +12,7 @@ in
{
jobAttrs.swraid =
jobs.swraid =
{ startOn = "udev"; # !!! or on "new-devices"
script =

@ -102,7 +102,7 @@ in
target = "splash";
};
jobAttrs.ttyBackgrounds =
jobs.ttyBackgrounds =
{ name = "tty-backgrounds";
startOn = "udev";

@ -9,7 +9,7 @@ with pkgs.lib;
config = {
jobAttrs.backdoor =
jobs.backdoor =
{ startOn = "network-interfaces";
preStart =

Loading…
Cancel
Save