anchor.diff:        };
         path = [ pkgs.jre_headless pkgs.which pkgs.procps ];
         preStart = ''
  -        mkdir -p /var/lib/graylog -m 755
  -
           rm -rf /var/lib/graylog/plugins || true
           mkdir -p /var/lib/graylog/plugins -m 755
   
  
positive.code:       };
      };
  
      systemd.services.graylog = with pkgs; {
        description = "Graylog Server";
        wantedBy = [ "multi-user.target" ];
  
negative.code:         for includedplugin in `ls ${cfg.package}/plugin/`; do
            ln -s ${cfg.package}/plugin/$includedplugin /var/lib/graylog/plugins/$includedplugin || true
          done
        '';
        serviceConfig = {
          User="${cfg.user}";
          StateDirectory = "graylog";
          ExecStart = "${cfg.package}/bin/graylogctl run";
        };
      };
  