mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-03-28 17:55:06 +00:00
Add an unoconv listener to joex nixos module
This commit is contained in:
parent
34bb3a7fc3
commit
1a0f176019
@ -604,20 +604,35 @@ in {
|
||||
description = "Docspell user";
|
||||
};
|
||||
|
||||
systemd.services.docspell-joex =
|
||||
let
|
||||
cmd = "${pkgs.docspell.joex}/bin/docspell-joex ${configFile}";
|
||||
in
|
||||
{
|
||||
description = "Docspell Joex";
|
||||
after = [ "networking.target" ];
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
path = [ pkgs.gawk ];
|
||||
preStart = ''
|
||||
'';
|
||||
# Setting up a unoconv listener to improve conversion performance
|
||||
systemd.services.unoconv =
|
||||
let
|
||||
cmd = "${pkgs.unoconv}/bin/unoconv --listener -v";
|
||||
in
|
||||
{
|
||||
description = "Unoconv Listener";
|
||||
after = [ "networking.target" ];
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
path = [ pkgs.unoconv ];
|
||||
serviceConfig = {
|
||||
Restart = "always";
|
||||
};
|
||||
script =
|
||||
"${pkgs.su}/bin/su -s ${pkgs.bash}/bin/sh ${user} -c \"${cmd}\"";
|
||||
};
|
||||
|
||||
script =
|
||||
"${pkgs.su}/bin/su -s ${pkgs.bash}/bin/sh ${user} -c \"${cmd}\"";
|
||||
};
|
||||
systemd.services.docspell-joex =
|
||||
let
|
||||
cmd = "${pkgs.docspell.joex}/bin/docspell-joex ${configFile}";
|
||||
in
|
||||
{
|
||||
description = "Docspell Joex";
|
||||
after = [ "networking.target" ];
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
path = [ pkgs.gawk ];
|
||||
|
||||
script =
|
||||
"${pkgs.su}/bin/su -s ${pkgs.bash}/bin/sh ${user} -c \"${cmd}\"";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user