Disable suspend and hibernate
This commit is contained in:
parent
db7e7c3c6c
commit
ac1446135f
@ -30,3 +30,8 @@ TimeoutStartSec=0
|
|||||||
WantedBy=default.target" > "/etc/systemd/system/monero-miner.service"
|
WantedBy=default.target" > "/etc/systemd/system/monero-miner.service"
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
systemctl enable monero-miner.service --now
|
systemctl enable monero-miner.service --now
|
||||||
|
|
||||||
|
# disable suspend and hibernate
|
||||||
|
systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target systemd-logind.service
|
||||||
|
# do this to revert previous changes
|
||||||
|
#systemctl unmask sleep.target suspend.target hibernate.target hybrid-sleep.target systemd-logind.service
|
Loading…
Reference in New Issue
Block a user