3 ms·
my motd shouldn't tell canonical every time i log in... looks like it never hits the cache unless the curl fails.
by a-dub 7y ago
my motd shouldn't tell canonical every time i log in...
looks like it never hits the cache unless the curl fails.
- justinsaccount 7y agoit doesn't. Right above that code is this block # If we're not forcing an update, and we have a cached motd-news file, # then just print it and exit as quickly as possible, for login performance. # Note that systemd should keep this cache file up to date, asynchronously if [ "$FORCED" != "1" ]; then if [ -r $CACHE ]; then echo safe_print $CACHE else : > $CACHE fi exit 0 fi None of that code in the tweet actually runs at login.
- jlgaddis 7y ago> None of that code in the tweet actually runs at login. Except when there was a bug that caused it to do just that (and also caused a five second delay when logging in).
- justinsaccount 7y ago... 2 and a half years ago. Can you provide links to all software you have ever written so I can complain about bugs that existed in 2017?
- jlgaddis 7y agoI suppose I can, if you really want me to, but: 1.) no software I've ever written is installed and enabled, by default, on pretty much every Ubuntu instance created in the last ~2.5 years (whether the "owners" of those instances want it or not), 2.) I certainly never claimed to write 100% bug-free code (in fact, I will freely admit that I absolutely DO NOT write bug-free code!), and 3.) this discussion really isn't about me or any code that I have written. (If you're the one that wrote whatever caused the bug and my comment caused your feelings to get hurt, sorry, but software bugs are a fact of life.)