The motd message is not cached

Bug #1752632 reported by Andreas Hasenack
12
This bug affects 2 people
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.

Tags: wsl
Revision history for this message
Balint Reczey (rbalint) wrote :

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.

Changed in landscape-client (Ubuntu):
status: New → Confirmed
tags: added: wsl
Revision history for this message
Balint Reczey (rbalint) wrote :

I'm adding the wsl tag because soon the MOTD will be shown in WSL terminal and this script's speed affects the time needed to show it.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in landscape-client (Ubuntu Artful):
status: New → Confirmed
Changed in landscape-client (Ubuntu Trusty):
status: New → Confirmed
Changed in landscape-client (Ubuntu Xenial):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.