1 2 3 4 5
[Unit] Description=Randomly choose line from /etc/fortune to update /etc/motd.d/fortune [Service] ExecStart=sh -c "fortune > /etc/motd.d/fortune"