From 72d3504fbd815cce28583e972cd365ce08b312f7 Mon Sep 17 00:00:00 2001 From: aszlig Date: Fri, 11 Apr 2014 00:06:31 +0200 Subject: [PATCH] hydra-module: Use PermissionsStartOnly in init. Oops, forgot to add this in f75509099a558ecfdd2f60a036c6e71de430920a. This is necessary because we actually want to run the preStart script as root (because it chmod/chowns stuff and also needs to create the database using PostgreSQL's superuser) and the actual creation of the database as user hydra. Signed-off-by: aszlig --- hydra-module.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/hydra-module.nix b/hydra-module.nix index cb96ef10..3833fb80 100644 --- a/hydra-module.nix +++ b/hydra-module.nix @@ -197,6 +197,7 @@ in ''} ''; serviceConfig.ExecStart = "${cfg.package}/bin/hydra-init"; + serviceConfig.PermissionsStartOnly = true; serviceConfig.User = "hydra"; serviceConfig.Type = "oneshot"; serviceConfig.RemainAfterExit = true;