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:
parent
7048a817b2
commit
644f9e74e7
|
@ -95,9 +95,11 @@ in {
|
||||||
-conf ${configPath} \\
|
-conf ${configPath} \\
|
||||||
-base /var/lib/freeswitch";
|
-base /var/lib/freeswitch";
|
||||||
ExecReload = "${pkg}/bin/fs_cli -x reloadxml";
|
ExecReload = "${pkg}/bin/fs_cli -x reloadxml";
|
||||||
Restart = "always";
|
Restart = "on-failure";
|
||||||
RestartSec = "5s";
|
RestartSec = "5s";
|
||||||
|
CPUSchedulingPolicy = "fifo";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
environment.systemPackages = [ pkg ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue