diff options
author | Janne Heß <janne@hess.ooo> | 2020-06-05 20:07:29 +0200 |
---|---|---|
committer | Janne Heß <janne@hess.ooo> | 2020-06-05 20:16:43 +0200 |
commit | 644f9e74e759e57d42676ec2c1d01e6b46dc0d90 (patch) | |
tree | 2aeb862b294b86e0b83f7db208c4976dc1ca09d2 /nixos/modules/services/misc | |
parent | 7048a817b2185e9d51c218cfd552de21ddc437cb (diff) | |
download | nixpkgs-644f9e74e759e57d42676ec2c1d01e6b46dc0d90.tar nixpkgs-644f9e74e759e57d42676ec2c1d01e6b46dc0d90.tar.gz nixpkgs-644f9e74e759e57d42676ec2c1d01e6b46dc0d90.tar.bz2 nixpkgs-644f9e74e759e57d42676ec2c1d01e6b46dc0d90.tar.lz nixpkgs-644f9e74e759e57d42676ec2c1d01e6b46dc0d90.tar.xz nixpkgs-644f9e74e759e57d42676ec2c1d01e6b46dc0d90.tar.zst nixpkgs-644f9e74e759e57d42676ec2c1d01e6b46dc0d90.zip |
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.
Diffstat (limited to 'nixos/modules/services/misc')
-rw-r--r-- | nixos/modules/services/misc/freeswitch.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/nixos/modules/services/misc/freeswitch.nix b/nixos/modules/services/misc/freeswitch.nix index d27dbe220d3..b42f36e8663 100644 --- a/nixos/modules/services/misc/freeswitch.nix +++ b/nixos/modules/services/misc/freeswitch.nix @@ -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 ]; }; } |