start devout alongside mdevd
ensure it starts before mdevd-coldplug so it can populate its database
This commit is contained in:
parent
e49aba127c
commit
bf0cafffed
2 changed files with 8 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
||||||
{ config, pkgs, lib, ...} :
|
{ config, pkgs, lib, ...} :
|
||||||
let inherit (pkgs.liminix.services) oneshot longrun bundle target;
|
let inherit (pkgs.liminix.services) oneshot longrun;
|
||||||
in {
|
in {
|
||||||
config = {
|
config = {
|
||||||
services = rec {
|
services = rec {
|
||||||
|
@ -8,9 +8,15 @@ in {
|
||||||
notification-fd = 3;
|
notification-fd = 3;
|
||||||
run = "${pkgs.mdevd}/bin/mdevd -D 3 -b 200000 -O4";
|
run = "${pkgs.mdevd}/bin/mdevd -D 3 -b 200000 -O4";
|
||||||
};
|
};
|
||||||
|
devout = longrun {
|
||||||
|
name = "devout";
|
||||||
|
notification-fd = 10;
|
||||||
|
run = "${pkgs.devout}/bin/devout /run/devout.sock 4";
|
||||||
|
};
|
||||||
mdevd-coldplug = oneshot {
|
mdevd-coldplug = oneshot {
|
||||||
name ="mdev-coldplug";
|
name ="mdev-coldplug";
|
||||||
up = "${pkgs.mdevd}/bin/mdevd-coldplug";
|
up = "${pkgs.mdevd}/bin/mdevd-coldplug -O 4";
|
||||||
|
dependencies = [devout];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -104,7 +104,6 @@
|
||||||
(values fd (if (> revent 0) revent nil)))))
|
(values fd (if (> revent 0) revent nil)))))
|
||||||
|
|
||||||
(fn parse-terms [str]
|
(fn parse-terms [str]
|
||||||
(print :terms str)
|
|
||||||
(collect [n (string.gmatch (str:gsub "\n+$" "") "([^ ]+)")]
|
(collect [n (string.gmatch (str:gsub "\n+$" "") "([^ ]+)")]
|
||||||
(string.match n "(.-)=(.+)")))
|
(string.match n "(.-)=(.+)")))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue