I would like to have a dynamic motd, but I can't figure out how to do it.
I tried what I found, adding 
/etc/update-motd.d/00-header, 
10-sysinfo, 
90-footer, and symlinking to 
/etc/motd, 
/var/run/motd.dynamic, 
/run/motd.dynamic, 
/run/motd or 
/var/run/motd.
I've got these lines in 
 /etc/pam.d/sshd:
# Print the message of the day upon successful login.
# This includes a dynamically generated part from /run/motd.dynamic
# and a static (admin-editable) part from /etc/motd.
session    optional     pam_motd.so  motd=/run/motd.dynamic
session    optional     pam_motd.so noupdate
I'm also confused with systemd.
Is there a way to do this? Could someone provide a example with a simple fortune?