ubuntu16.04系統資源緊缺時殺掉session,進程
Dec 12 12:17:01 bogon CRON[3308]: (root) CMD ( ? cd / && run-parts --report /etc/cron.hourly)
Dec 12 12:28:02 bogon systemd[1]: Stopping User Manager for UID 1000...
Dec 12 12:28:02 bogon systemd[873]: Reached target Shutdown.
Dec 12 12:28:02 bogon systemd[873]: Starting Exit the Session...
Dec 12 12:28:02 bogon systemd[873]: Stopped target Default.
Dec 12 12:28:02 bogon systemd[873]: Stopped target Basic System.
Dec 12 12:28:02 bogon systemd[873]: Stopped target Sockets.
Dec 12 12:28:02 bogon systemd[873]: Stopped target Timers.
Dec 12 12:28:02 bogon systemd[873]: Stopped target Paths.
Dec 12 12:28:02 bogon systemd[873]: Received SIGRTMIN+24 from PID 3489 (kill).
Dec 12 12:28:02 bogon systemd[1]: Stopped User Manager for UID 1000.
Dec 12 12:28:02 bogon systemd[1]: Removed slice User Slice of dev.
Dec 12 12:28:12 bogon systemd[1]: Created slice User Slice of dev.
Dec 12 12:28:12 bogon systemd[1]: Starting User Manager for UID 1000...
Dec 12 12:28:12 bogon systemd[1]: Started Session 6 of user dev.
Dec 12 12:28:12 bogon systemd[3497]: Reached target Paths.
Dec 12 12:28:12 bogon systemd[3497]: Reached target Timers.
Dec 12 12:28:12 bogon systemd[3497]: Reached target Sockets.
Dec 12 12:28:12 bogon systemd[3497]: Reached target Basic System.
Dec 12 12:28:12 bogon systemd[3497]: Reached target Default.
Dec 12 12:28:12 bogon systemd[3497]: Startup finished in 21ms.
Dec 12 12:28:12 bogon systemd[1]: Started User Manager for UID 1000.
Dec 12 12:28:13 bogon systemd[1]: Started Session 7 of user dev.
Dec 12 12:28:15 bogon systemd[1]: Started Session 8 of user dev.
Dec 12 12:31:08 bogon dhclient[789]: DHCPREQUEST of 192.168.134.134 on ens32 to 192.168.134.254 port 67 (xid=0x545717df)
Dec 12 12:31:08 bogon dhclient[789]: DHCPACK of 192.168.134.134 from 192.168.134.254
Dec 12 12:31:08 bogon dhclient[789]: bound to 192.168.134.134 -- renewal in 833 seconds.
he fix is to add
[login]
KillUserProcesses=no
to?/etc/systemd/logind.conf
and reboot.
ubuntu16.04系統資源緊缺時殺掉session,進程