Public bug reported: I was looking at the motd-news.service file and 50-motd-news recently and discovered that 50-motd-news is always called with --force.
bdmurray@clean-disco-amd64:~$ systemctl cat motd-news.service # /lib/systemd/system/motd-news.service [Unit] Description=Message of the Day After=network-online.target Documentation=man:update-motd(8) [Service] Type=oneshot ExecStart=/etc/update-motd.d/50-motd-news --force However, 50-motd-news leads one to believe that it would be faster if it were not called with --force. " # If we're not forcing an update, and we have a cached motd-news file, # then just print it and exit as quickly as possible, for login performance. # Note that systemd should keep this cache file up to date, asynchronously if [ "$FORCED" != "1" ]; then if [ -r $CACHE ]; then echo safe_print $CACHE else : > $CACHE fi exit 0 fi " So is login performance being degraded since 50-motd-news is always called with --force? ** Affects: base-files (Ubuntu) Importance: Undecided Status: New ** Tags: disco eoan rls-ee-incoming -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to base-files in Ubuntu. https://bugs.launchpad.net/bugs/1832886 Title: 50-motd-news always called with --force Status in base-files package in Ubuntu: New Bug description: I was looking at the motd-news.service file and 50-motd-news recently and discovered that 50-motd-news is always called with --force. bdmurray@clean-disco-amd64:~$ systemctl cat motd-news.service # /lib/systemd/system/motd-news.service [Unit] Description=Message of the Day After=network-online.target Documentation=man:update-motd(8) [Service] Type=oneshot ExecStart=/etc/update-motd.d/50-motd-news --force However, 50-motd-news leads one to believe that it would be faster if it were not called with --force. " # If we're not forcing an update, and we have a cached motd-news file, # then just print it and exit as quickly as possible, for login performance. # Note that systemd should keep this cache file up to date, asynchronously if [ "$FORCED" != "1" ]; then if [ -r $CACHE ]; then echo safe_print $CACHE else : > $CACHE fi exit 0 fi " So is login performance being degraded since 50-motd-news is always called with --force? To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/base-files/+bug/1832886/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp