Description of problem: There is a message in the journal from systemd not being happy with insights-client-boot.service syntax. Version-Release number of selected component (if applicable): insights-client-3.1.7-12.el9.noarch systemd-252-2.el9.x86_64 How reproducible: Deteministic. Steps to Reproduce: 1. Install RHEL 9.2 (which now includes rhc and thus insights-client). 2. # journalctl -l | grep 'will be removed' Actual results: Dec 21 10:15:16 machine.example.com systemd[1]: /usr/lib/systemd/system/insights-client-boot.service:24: Unit uses MemoryLimit=; please use MemoryMax= instead. Support for MemoryLimit= will be removed soon. Expected results: No such message. Additional info:
See the same log from our testing. [root@ip-10-116-2-92 ec2-user]# systemd-analyze verify insights-client-boot.service /usr/lib/systemd/system/insights-client-boot.service:24: Unit uses MemoryLimit=; please use MemoryMax= instead. Support for MemoryLimit= will be removed soon. [root@ip-10-116-2-92 ec2-user]# systemctl cat insights-client-boot.service # /usr/lib/systemd/system/insights-client-boot.service # This file is part of insights-client. # # Any changes made to this file will be overwritten during a software update. To # override a parameter in this file, create a drop-in file, typically located at # /etc/systemd/system/insights-client-boot.service.d/override.conf Put the desired # overrides in that file and reload systemd. # # For more information about systemd drop-in files, see systemd.unit(5). [Unit] Description=Run Insights Client at boot Documentation=man:insights-client(8) After=network-online.target ConditionPathExists=/etc/insights-client/.run_insights_client_next_boot [Service] Type=oneshot ExecStart=/usr/bin/insights-client --retry 3 Restart=no WatchdogSec=900 CPUQuota=30% MemoryHigh=1G MemoryMax=2G MemoryLimit=2G TasksMax=300 BlockIOWeight=100 ExecStartPre=/bin/rm -f /etc/insights-client/.run_insights_client_next_boot [Install] WantedBy=multi-user.target
I could reproduce this situation: >>># journalctl -l | grep 'will be removed' Jan 10 05:39:02 template-iqe-jslave-rhel92 systemd[1]: /usr/lib/systemd/system/insights-client-boot.service:24: Unit uses MemoryLimit=; please use MemoryMax= instead. Support for MemoryLimit= will be removed soon. Jan 10 06:49:04 test-9rhel2 systemd[1]: /usr/lib/systemd/system/insights-client.service:23: Unit uses MemoryLimit=; please use MemoryMax= instead. Support for MemoryLimit= will be removed soon. Jan 10 06:49:08 test-9rhel2 systemd[1]: /usr/lib/systemd/system/insights-client.service:23: Unit uses MemoryLimit=; please use MemoryMax= instead. Support for MemoryLimit= will be removed soon. Jan 10 06:49:19 test-9rhel2 systemd[1]: /usr/lib/systemd/system/insights-client.service:23: Unit uses MemoryLimit=; please use MemoryMax= instead. Support for MemoryLimit= will be removed soon.