nixos/freeswitch: Unit improvements and add fs_cli

This switches the unit to Restart=on-failure and switches the CPU policy
to fifo (the daemon tries to do that itself, but is denied permission).

Also add the package to $PATH to be able to use fs_cli easily.
This commit is contained in:
Janne Heß 2020-06-05 20:07:29 +02:00
parent 7048a817b2
commit 644f9e74e7
No known key found for this signature in database
GPG Key ID: 69165158F05265DF

View File

@ -95,9 +95,11 @@ in {
-conf ${configPath} \\
-base /var/lib/freeswitch";
ExecReload = "${pkg}/bin/fs_cli -x reloadxml";
Restart = "always";
Restart = "on-failure";
RestartSec = "5s";
CPUSchedulingPolicy = "fifo";
};
};
environment.systemPackages = [ pkg ];
};
}