summary refs log tree commit diff
path: root/nixos/modules/services/misc/mesos-master.nix
diff options
context:
space:
mode:
authorAaron Andersen <aaron@fosslib.net>2019-02-24 11:21:20 -0500
committerAaron Andersen <aaron@fosslib.net>2019-04-13 07:00:56 -0400
commit89081eef5d4ed4c26448c0f167124508d51b880c (patch)
tree1a3d89918b95f4b3f34e7ad802b68e65259bb659 /nixos/modules/services/misc/mesos-master.nix
parent2f50cd06dcbbf20aa2c5c0c339e6e10673839658 (diff)
downloadnixpkgs-89081eef5d4ed4c26448c0f167124508d51b880c.tar
nixpkgs-89081eef5d4ed4c26448c0f167124508d51b880c.tar.gz
nixpkgs-89081eef5d4ed4c26448c0f167124508d51b880c.tar.bz2
nixpkgs-89081eef5d4ed4c26448c0f167124508d51b880c.tar.lz
nixpkgs-89081eef5d4ed4c26448c0f167124508d51b880c.tar.xz
nixpkgs-89081eef5d4ed4c26448c0f167124508d51b880c.tar.zst
nixpkgs-89081eef5d4ed4c26448c0f167124508d51b880c.zip
nixos/mesos: replace deprecated usage of PermissionsStartOnly
see https://github.com/NixOS/nixpkgs/issues/53852
Diffstat (limited to 'nixos/modules/services/misc/mesos-master.nix')
-rw-r--r--nixos/modules/services/misc/mesos-master.nix7
1 files changed, 3 insertions, 4 deletions
diff --git a/nixos/modules/services/misc/mesos-master.nix b/nixos/modules/services/misc/mesos-master.nix
index 0523c6549ed..572a9847e46 100644
--- a/nixos/modules/services/misc/mesos-master.nix
+++ b/nixos/modules/services/misc/mesos-master.nix
@@ -95,6 +95,9 @@ in {
 
 
   config = mkIf cfg.enable {
+    systemd.tmpfiles.rules = [
+      "d '${cfg.workDir}' 0700 - - - -"
+    ];
     systemd.services.mesos-master = {
       description = "Mesos Master";
       wantedBy = [ "multi-user.target" ];
@@ -114,11 +117,7 @@ in {
             ${toString cfg.extraCmdLineOptions}
         '';
         Restart = "on-failure";
-        PermissionsStartOnly = true;
       };
-      preStart = ''
-        mkdir -m 0700 -p ${cfg.workDir}
-      '';
     };
   };