nixos/freeswitch: always run systemctl of the currently running systemd

This commit is contained in:
Florian Klink 2020-05-21 10:29:52 +02:00
parent 8aaca0addc
commit 73392b748f

View File

@ -78,7 +78,7 @@ in {
wantedBy = [ "multi-user.target" ];
restartTriggers = [ configDirectory ];
serviceConfig = {
ExecStart = "${pkgs.systemd}/bin/systemctl try-reload-or-restart freeswitch.service";
ExecStart = "/run/current-system/systemd/bin/systemctl try-reload-or-restart freeswitch.service";
RemainAfterExit = true;
Type = "oneshot";
};