ノートPCの画面閉じた時のPROXMOX設定メモその後…

.液晶モニターを閉じたままスリープしない状態に出来たものの、ログファイルがとんでもなく肥大化してPROXMOXのディスク使用量が100%になってたので対処。
※すぐさまローテートされたファイルを削除。

/etc/systemd/logind.conf を編集して reboot。

root@pve99:/var/log# diff /etc/systemd/logind.conf{.20220305,}
42a43,47
> HandleSuspendKey=ignore
> HandleHibernateKey=ignore
> HandleLidSwitch=ignore
> HandleLidSwitchExternalPower=ignore
> HandleLidSwitchDocked=ignore
root@pve99:/var/log# 
root@pve99:/var/log# ls -lh auth.log 
-rw-r----- 1 root adm 40G Mar  5 20:10 auth.log
root@pve99:/var/log# head auth.log 
Feb 27 00:00:03 pve99 systemd-logind[710]: Suspending...
Feb 27 00:00:03 pve99 systemd-logind[710]: Unit suspend.target is masked, refusing operation.
Feb 27 00:00:03 pve99 systemd-logind[710]: Failed to execute suspend operation: Permission denied
Feb 27 00:00:03 pve99 systemd-logind[710]: Suspending...
Feb 27 00:00:03 pve99 systemd-logind[710]: Unit suspend.target is masked, refusing operation.
Feb 27 00:00:03 pve99 systemd-logind[710]: Failed to execute suspend operation: Permission denied
Feb 27 00:00:03 pve99 systemd-logind[710]: Suspending...
Feb 27 00:00:03 pve99 systemd-logind[710]: Unit suspend.target is masked, refusing operation.
Feb 27 00:00:03 pve99 systemd-logind[710]: Failed to execute suspend operation: Permission denied
Feb 27 00:00:03 pve99 systemd-logind[710]: Suspending...
root@pve99:/var/log# tail auth.log 
Mar  5 20:09:32 pve99 systemd-logind[638]: Watching system buttons on /dev/input/event0 (Lid Switch)
Mar  5 20:09:32 pve99 systemd-logind[638]: Watching system buttons on /dev/input/event1 (Sleep Button)
Mar  5 20:09:32 pve99 systemd-logind[638]: Watching system buttons on /dev/input/event3 (AT Translated Set 2 keyboard)
Mar  5 20:09:32 pve99 systemd-logind[638]: Watching system buttons on /dev/input/event8 (ThinkPad Extra Buttons)
Mar  5 20:09:36 pve99 sshd[775]: Server listening on 0.0.0.0 port 22.
Mar  5 20:09:36 pve99 sshd[775]: Server listening on :: port 22.
Mar  5 20:10:40 pve99 login[1158]: pam_unix(login:session): session opened for user root(uid=0) by (uid=0)
Mar  5 20:10:40 pve99 systemd-logind[638]: New session 1 of user root.
Mar  5 20:10:40 pve99 systemd: pam_unix(systemd-user:session): session opened for user root(uid=0) by (uid=0)
Mar  5 20:10:41 pve99 login[1187]: ROOT LOGIN  on '/dev/pts/0'
root@pve99:/var/log# 

コメント

タイトルとURLをコピーしました