From 1eb6cc15823a0b0568296a812de0e0160cd7fadc Mon Sep 17 00:00:00 2001 From: ppom Date: Tue, 29 Oct 2024 12:00:00 +0100 Subject: [PATCH] nixos/peertube: startup script: exec into nodejs 1. Removed the #!/bin/sh shebang at the beginning, because systemd.services..script already adds a #!/nix/store/.../bin/bash shebang. Previously: #!/nix/store/516kai7nl5dxr792c0nzq0jp8m4zvxpi-bash-5.2p32/bin/bash set -e #!/bin/sh umask 077 ... 2. Exec into nodejs, so that the startup script is no longer running but replaces itself by nodejs. This way, only one processus is running inside peertube.service. --- nixos/modules/services/web-apps/peertube.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nixos/modules/services/web-apps/peertube.nix b/nixos/modules/services/web-apps/peertube.nix index e3f15f4f438cc..4f5ea3390e880 100644 --- a/nixos/modules/services/web-apps/peertube.nix +++ b/nixos/modules/services/web-apps/peertube.nix @@ -432,7 +432,6 @@ in { path = with pkgs; [ nodejs_18 yarn ffmpeg-headless openssl ]; script = '' - #!/bin/sh umask 077 cat > /var/lib/peertube/config/local.yaml <