I think this is related to
https://github.com/systemd/systemd/issues/6680, specifically this
comment:

"hmm, so OnUnitActiveSec= operates relative to a unit becoming active,
but Type=oneshot service units actually never become active, unless you
combine them with RemainAfterExit=, hence the confusion...

Type=oneshot units after all do stuff during their start-up and when
that's complete they go down again, they never stay up continiously...
Hence, combining Type=oneshot with OnUnitActiveSec= can't really work...
This is a big underdocumented though"

Which seems relevant, since:

  $ cat /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

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1829968

Title:
  motd [on at least some instances] does not auto-update daily

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/base-files/+bug/1829968/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to