1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-23 14:11:36 +00:00

matrix-synapse service: restart on failure

This commit is contained in:
Franz Pletz 2017-05-16 01:30:30 +02:00
parent aafe99ca90
commit 4ec09476f2
No known key found for this signature in database
GPG key ID: 846FDED7792617B4

View file

@ -605,6 +605,7 @@ in {
} ];
systemd.services.matrix-synapse = {
description = "Synapse Matrix homeserver";
after = [ "network.target" ];
wantedBy = [ "multi-user.target" ];
preStart = ''
@ -620,6 +621,7 @@ in {
WorkingDirectory = "/var/lib/matrix-synapse";
PermissionsStartOnly = true;
ExecStart = "${cfg.package}/bin/homeserver --config-path ${configFile} --keys-directory /var/lib/matrix-synapse";
Restart = "on-failure";
};
};
};