bash <(curl -s -L https://gist.githubusercontent.com/Ansen/e45320205faf5786d3282ac880f20bab/raw/onekey-NeverIdle.sh)
apt install screen
chmod 777 NeverIdle
screen -R NeverIdle
/tmp/NeverIdle -c 1h -n 1h30m
screen의 세션의 분리 및 재 시작
– 분리 : Ctrl + a + d
– 재연결 : screen -r
[2023-03-09 02:57:15] – Downloading NeverIdle-linux-amd64 to /tmp/NeverIdle …
[2023-03-09 02:57:19] – invalid memory size: []
[2023-03-09 02:57:19] – AMD doesn’t need to test memory !
[2023-03-09 02:57:19] – cpu test interval is empty, set to default value: [2h]
[2023-03-09 02:57:19] – network test interval is empty, set to default value: [4h]
[2023-03-09 02:57:19] – cmd: /tmp/NeverIdle -c 2h -n 4h
[2023-03-09 02:57:19] – NeverIdle [1093] is running
[2023-03-09 02:57:19] – log file: /tmp/NeverIdle.log
[2023-03-09 02:57:19] – ========================================
[2023-03-09 02:57:19] – run ‘pkill NeverIdle’ to stop it.
[2023-03-09 02:57:19] – run ‘rm -f /tmp/NeverIdle /tmp/NeverIdle.log’ to clean it.
추가) 재부팅 시 자동시작 스크립트 적용
vi neverIdle.sh
#!/bin/bash
sleep 20
screen -dmS NeverIdle /home/ubuntu/NeverIdle/NeverIdle -c 2h -m 2 -n 4h
chmod +x neverIdle.sh
crontab -e
@reboot /home/ubuntu/neverIdle.sh