anchor.diff:            Type = "notify";
             ExecStart = "${poolOpts.phpPackage}/bin/php-fpm -y ${cfgFile} -c ${iniFile}";
             ExecReload = "${pkgs.coreutils}/bin/kill -USR2 $MAINPID";
  +          RuntimeDirectory = "phpfpm";
  +          RuntimeDirectoryPreserve = true; # Relevant when multiple processes are running
           };
         }
       ) cfg.pools;
  
positive.code:       };
  
        config = {
          socket = if poolOpts.listen == "" then "${stateDir}/${name}.sock" else poolOpts.listen;
          group = mkDefault poolOpts.user;
        };
      };
  
negative.code: let
    cfg = config.services.phpfpm;
  
    runtimeDir = "/run/phpfpm";
  
    fpmCfgFile = pool: poolOpts: pkgs.writeText "phpfpm-${pool}.conf" ''
      [global]
  