Berkeley CSUA MOTD:Entry 14321
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/04/04 [General] UID:1000 Activity:popular
4/4     

1998/7/13 [Computer/SW/RevisionControl] UID:14321 Activity:nil
7/13    Is there some place MOTD's are archived or do I have to start
        my own background process to save a copy every once in a while?
        \_ If you want to keep the motd from being nuked create a
           background process that checks the size of the motd.  If it's
           larger than it was about a minute ago then back it up.  If
           it's smaller then copy the backup to /etc/motd.public.  That
           way the motd can never shrink.
           \_ That's a good start, but what if someone replaces the MOTD
              with a larger file filled only with X's ?  I think some
              kind of diff'ing or manual backups are necessary.  Another
              idea would be to manage the MOTD with RCS or CVS.  Then
              if someone nukes it you could just check out a previous,
              uncorrupted version. -emin
           \_ how do you create a background process that will always run,
              even when you are not logged on?
                \_ cron
                        \_ is there any other way?
                                \_ nohup???