bitcoind: remove 'StateDirectory'

This option is useless because we're doing our own state dir management
via 'dataDir'.
This commit is contained in:
Erik Arvstedt 2019-11-12 19:40:29 +01:00
parent bea9a87aae
commit 8807b9f6b2
No known key found for this signature in database
GPG Key ID: 33312B944DD97846

View File

@ -238,7 +238,6 @@ in {
User = "${cfg.user}"; User = "${cfg.user}";
Group = "${cfg.group}"; Group = "${cfg.group}";
ExecStart = "${cfg.package}/bin/bitcoind ${cmdlineOptions}"; ExecStart = "${cfg.package}/bin/bitcoind ${cmdlineOptions}";
StateDirectory = "bitcoind";
PIDFile = "${pidFile}"; PIDFile = "${pidFile}";
Restart = "on-failure"; Restart = "on-failure";
@ -287,7 +286,6 @@ in {
User = "${cfg.user}"; User = "${cfg.user}";
Group = "${cfg.group}"; Group = "${cfg.group}";
ExecStart = "${pkgs.bash}/bin/bash ${pkgs.banlist}/bin/banlist ${pkgs.blockchains.bitcoind}"; ExecStart = "${pkgs.bash}/bin/bash ${pkgs.banlist}/bin/banlist ${pkgs.blockchains.bitcoind}";
StateDirectory = "bitcoind";
# Permission for preStart # Permission for preStart
PermissionsStartOnly = "true"; PermissionsStartOnly = "true";