Debian12 设置一段时间后挂起进程
在文件 /etc/systemd/logind.conf,中添加配置30分钟以后无活跃进程就挂起。进入挂起状态的主机可以被唤醒命令唤醒。
IdleAction=suspend
IdleActionSec=30min
然后重启服务
systemctl restart systemd-logind
在文件 /etc/systemd/logind.conf,中添加配置30分钟以后无活跃进程就挂起。进入挂起状态的主机可以被唤醒命令唤醒。
IdleAction=suspend
IdleActionSec=30min
然后重启服务
systemctl restart systemd-logind