The motd message is not cached
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Landscape Client |
New
|
Undecided
|
Unassigned | ||
landscape-client (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned | ||
Trusty |
Confirmed
|
Undecided
|
Unassigned | ||
Xenial |
Confirmed
|
Undecided
|
Unassigned | ||
Artful |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
landscape-common has an MOTD component called landscape-sysinfo. Historically that used update-motd to display cached information. update-motd has been deprecated in favor of pam_motd, but landscape-common was never changed accordingly.
The situation we have now in landscape-common's debconf is:
- "Cache sysinfo in /etc/motd": places a symlink in /etc/update-motd.d. With pam_motd, there is no cache, so that script is called on every login.
- "Run sysinfo on every login": places the same symlink in /etc/profile.d, removes the one from /etc/update-motd.d. End result is the same as before: script is called on every login
- "Do not display sysinfo on login": remove /etc/profile.d and /etc/update-motd.d symlinks. This is the only option that is currently working as advertised.
I confirm that the observation in the bug is valid, but since the MOTD component includes dynamic data such as system load IMO it should not be cached.
OTOH making the script faster would be desired IMO.