commit 7410cc6b7e84598aa428a3b7f5ae3df1fa4dbafe
parent 2f7f8a6d1608bf65ea2e5036cb56dbe2c58f4b2b
Author: Leah (ctucx) <git@ctu.cx>
Date: Mon, 26 Sep 2022 18:36:53 +0200
parent 2f7f8a6d1608bf65ea2e5036cb56dbe2c58f4b2b
Author: Leah (ctucx) <git@ctu.cx>
Date: Mon, 26 Sep 2022 18:36:53 +0200
modules/gotosocial: restart if it crashes
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/modules/linux/gotosocial.nix b/modules/linux/gotosocial.nix @@ -142,6 +142,9 @@ in { ReadWritePaths = [ cfg.settings.storage-local-base-path ]; StateDirectoryMode = "700"; + Restart = "always"; + RestartSec = 3; + ExecStart = "${cfg.package}/bin/gotosocial --config-path ${configFile} server start"; NoNewPrivileges = true;