about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorEric Wolf <robo-eric@gmx.de>2024-05-29 08:00:32 +0200
committerSandro Jäckel <sandro.jaeckel@gmail.com>2024-06-02 23:19:07 +0200
commit7c0937d6689916e9d8b4c43de665e7e628bb35f9 (patch)
tree0dd20e2d182a4dd60ca1dfd521342398a2f58c8f /nixos
parente673478a30cfc72292bed05ef5bfd3c09b2dd400 (diff)
nixos/nextcloud-notify_push: use `Type=notify`
This prevents the post start script from running
before necessary sockets have been created.

It also prevents an unused shell from being kept around
by using `exec` to make `notify_push` the main process.
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/web-apps/nextcloud-notify_push.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/nixos/modules/services/web-apps/nextcloud-notify_push.nix b/nixos/modules/services/web-apps/nextcloud-notify_push.nix
index d6d17158a5590..4da5aff0c83e2 100644
--- a/nixos/modules/services/web-apps/nextcloud-notify_push.nix
+++ b/nixos/modules/services/web-apps/nextcloud-notify_push.nix
@@ -90,7 +90,7 @@ in
         export DATABASE_PASSWORD="$(<"${cfg.dbpassFile}")"
       '' + ''
         export DATABASE_URL="${dbUrl}"
-        ${cfg.package}/bin/notify_push '${cfgN.datadir}/config/config.php'
+        exec ${cfg.package}/bin/notify_push '${cfgN.datadir}/config/config.php'
       '';
       serviceConfig = {
         User = "nextcloud";
@@ -98,6 +98,7 @@ in
         RuntimeDirectory = [ "nextcloud-notify_push" ];
         Restart = "on-failure";
         RestartSec = "5s";
+        Type = "notify";
       };
     };