p2pool: don't disable on power loss
p2pool is very light on resources, it's xmrig that should be disabled
This commit is contained in:
@@ -33,12 +33,6 @@
|
|||||||
wants = [ "monero.service" ];
|
wants = [ "monero.service" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
# Stop p2pool on UPS battery to conserve power
|
|
||||||
services.apcupsd.hooks = lib.mkIf config.services.apcupsd.enable {
|
|
||||||
onbattery = "systemctl stop p2pool";
|
|
||||||
offbattery = "systemctl start p2pool";
|
|
||||||
};
|
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [
|
networking.firewall.allowedTCPPorts = [
|
||||||
service_configs.ports.public.p2pool_p2p.port
|
service_configs.ports.public.p2pool_p2p.port
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user