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

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";
};
};
};