Debian12 设置一段时间后挂起进程

在文件 /etc/systemd/logind.conf,中添加配置30分钟以后无活跃进程就挂起。进入挂起状态的主机可以被唤醒命令唤醒。

IdleAction=suspend
IdleActionSec=30min

然后重启服务

systemctl restart systemd-logind
posted @ 2024-10-10 16:17  熊先生不开玩笑  阅读(132)  评论(0)    收藏  举报