diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2009-10-12 16:36:19 +0000 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2009-10-12 16:36:19 +0000 |
commit | e91d882a946fc736f62235296e77c139cee7d9b3 (patch) | |
tree | e220488319f0cc28aafb01ca26809429eeaf7f82 /modules/tasks/swraid.nix | |
parent | 4a78ef25e73da292d060a2afde0c00980a22b2ac (diff) | |
download | nixpkgs-e91d882a946fc736f62235296e77c139cee7d9b3.tar nixpkgs-e91d882a946fc736f62235296e77c139cee7d9b3.tar.gz nixpkgs-e91d882a946fc736f62235296e77c139cee7d9b3.tar.bz2 nixpkgs-e91d882a946fc736f62235296e77c139cee7d9b3.tar.lz nixpkgs-e91d882a946fc736f62235296e77c139cee7d9b3.tar.xz nixpkgs-e91d882a946fc736f62235296e77c139cee7d9b3.tar.zst nixpkgs-e91d882a946fc736f62235296e77c139cee7d9b3.zip |
* Converted modules that were still using the old (concrete syntax)
style of declaring Upstart jobs. While at it, converted them to the current NixOS module style and improved some option descriptions. Hopefully I didn't break too much :-) svn path=/nixos/trunk/; revision=17761
Diffstat (limited to 'modules/tasks/swraid.nix')
-rw-r--r-- | modules/tasks/swraid.nix | 26 |
1 files changed, 10 insertions, 16 deletions
diff --git a/modules/tasks/swraid.nix b/modules/tasks/swraid.nix index a0a25efa354..d9419fadb11 100644 --- a/modules/tasks/swraid.nix +++ b/modules/tasks/swraid.nix @@ -1,4 +1,4 @@ -{pkgs, config, ...}: +{ config, pkgs, ... }: ###### implementation @@ -12,16 +12,11 @@ in { - services = { - extraJobs = [{ - name = "swraid"; - - job = '' - start on udev - #start on new-devices - - script + jobAttrs.swraid = + { startOn = "udev"; # !!! or on "new-devices" + script = + '' # Load the necessary RAID personalities. # !!! hm, doesn't the kernel load these automatically? for mod in raid0 raid1 raid5; do @@ -35,10 +30,9 @@ in ${mdadm}/sbin/mdadm --assemble -c ${tempConf} --scan initctl emit new-devices - - end script - - ''; - }]; - }; + ''; + + task = true; + }; + } |