HNHacker News
TopNewBestAskShowJobs

dghubble

268 karma · joined February 1, 2013

submissionscomments
dghubble··on Writing systemd units that stop gracefully before shutdown
That's fair, that example would be better with a modest timeout (e.g. if podman had a bug that caused it to hang), without taking away from the main points. Updated.

Someone asked about the opposite on Twitter: https://twitter.com/DannoHung/status/1585350836074446869

dghubble··on Writing systemd units that stop gracefully before shutdown
The post shows long-running stop scripts / containers and demonstrates them delaying shutdown (not with KillMode none though)

@CGamesPlay network.target's "primary purpose is for ordering things properly at shutdown: since the shutdown ordering of units in systemd is the reverse of the startup ordering, any unit that is order After=network.target can be sure that it is stopped before the network is shut down if the system is powered off."

https://www.freedesktop.org/wiki/Software/systemd/NetworkTar...

dghubble··on Writing systemd units that stop gracefully before shutdown
Hmm, sorry you're not seeing it. Its just a CNAME to Cloudflare Pages, nothing fancy

  dig www.psdn.io @1.1.1.1
  
  ; <<>> DiG 9.16.33-RH <<>> www.psdn.io @1.1.1.1
  ;; global options: +cmd
  ;; Got answer:
  ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 37362
  ;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0,   ADDITIONAL: 1
  ;; QUESTION SECTION:
  ;www.psdn.io.                   IN      A
  
  ;; ANSWER SECTION:
  www.psdn.io.            126     IN      CNAME   poseidon-www.pages.dev.
  poseidon-www.pages.dev. 126     IN      A       172.66.45.44
  poseidon-www.pages.dev. 126     IN      A       172.66.46.212
dghubble··on Writing systemd units that stop gracefully before shutdown
That's what this post builds to solving at the end and in the next post - having a unit deletes the instance from a cluster before shutdown
dghubble··on Kubermesh: self-hosted/healing/provisioning, partial-mesh network K8s cluster
Just to clarify - there are a few NUCs, but its mostly SuperMicros and other vendors where testing and qa are done.
dghubble··on Ignition: A new CoreOS machine provisioning utility
Some useful Ignition configs can be found in the https://github.com/coreos/coreos-baremetal examples. For those wondering about the format, they're converted to JSON and served to machines.
dghubble··on Twitter sues U.S. government over ability to disclose surveillance orders
See the exponential fees Yahoo was threatened with (7.9 sextillion after a year) https://www.reddit.com/r/technology/comments/2gjvrf/governme...
dghubble··on Bash Configurations Demystified
I think many Linux users have hacked around and messed up settings. This line was meant for those who have been in that situation, to say "hey btw, that screen was a login shell" (even took a picture of it). Just adds a little context, it doesn't resonate with everyone.

I think booting to a console when you expect a desktop can be scary, especially if you don't know how to undo whatever you did.

dghubble··on Bash Configurations Demystified
~/.profile is executed only at login on Ubuntu so changing your PATH there will be applied the next time you login. You can source the ~/.profile in your current non-login shell if you need the PATH change right now. I've tried to tweak the second paragraph in the "When not to modify .bashrc?" section to make this more clear.

Thanks for bringing this up.

dghubble··on Bash Configurations Demystified
^ broken link.
dghubble··on Bash Configurations Demystified for Linux and OS X
Moved to http://dghubble.com/.bashprofile-.profile-and-.bashrc-conven...
dghubble··on Brewing a Bitcoin Wallet: A Bitcoin Wallet on your Mac with one command
Moved to http://dghubble.com/brewing-a-bitcoin-wallet.html
dghubble··on Brewing a Bitcoin Wallet: A Bitcoin Wallet on your Mac with one command
Interesting idea. You'd only need to be able to detect the presence or absence of 8 compounds to get the 256 unique states though. Makes it a bit more doable :)
dghubble··on Bash Configurations Demystified for Linux and OS X
NP, I'm glad you found it useful. :)