Sunday, January 23, 2011

MOTD debian - is this ever changed by an update?

Is this ever changed automatically by a system update?

I'm just wondering as I set a 'hilarious' one for a personal server off rackspace cloud, and it seems to have been deleted.

  • See /etc/init.d/bootlogs

    Specifically this line

    # Update motd
    uname -snrvm > /var/run/motd
    [ -f /etc/motd.tail ] && cat /etc/motd.tail >> /var/run/motd
    

    Meaning you should put your changes to motd in /etc/motd.tail otherwise its going to get overwritten on boot.

0 comments:

Post a Comment