Hacker News new | past | comments | ask | show | jobs | submit | tonyskn's comments login

> Reboot to Upgrade

This is not needed anymore. Check systemd's manual for 'systemd daemon-reexec'


The article specifically addresses this feature, but I'm not knowledgeable enough about the topic to judge the quality of the argument.


So, I used to vaguely help develop another proposed init replacement a few years ago, and it's entirely correct. The only way to upgrade init is to have it dump state and re-exec() itself, and there are theoretical failure modes that will cause init to crash before it's even possible to set up a crash handler to catch the problem, causing a kernel panic.

What's more, supporting upgrades this way means you need to support every previous state file format, and the more state and features there are the harder this is to do. (Seriously, it was a pain in the butt to keep track of.) systemd is developed primarily by and for Red Hat who avoid this problem by not supporting upgrades to a new distro release from within the running system - but most other major distros do and will likely be bitten hard by the issue.

Without support for this you can't even reboot cleanly after upgrading init or any of the libraries it uses, because init will keep old deleted executable open and make it impossible to remount root as read-only (an obscure quirk of Unix filesystems that basically only init developers need to know). You don't just need to reboot to upgrade init, you need to boot into a special upgrade environment that doesn't use the system's init, and Fedora does. That's why Fedora needs daemon-reexec - otherwise they wouldn't even be able to apply security updates to glibc without rebooting first. Compare this with kernel upgrades, which can be installed immediately and simply don't take effect until the next reboot.


Without support for this you can't even reboot cleanly after upgrading init or any of the libraries it uses, because init will keep old deleted executable open and make it impossible to remount root as read-only

Lennart Poettering on how this is done in systemd:

https://plus.google.com/+LennartPoetteringTheOneAndOnly/post...


That's quite a clever solution - except that upon reading what Lennart says in the comments, systemd-shutdown is apparently closely coupled with systemd and receives enough state from it that it cannot be used with any other init system. So I'm not sure it's safe to rely on that for any major upgrade. (Not entirely sure why it needs all that state either.)


IDEA Community Edition is free and perfectly usable


For what? Java SE? What else?


Java SE. Scala. Kotlin. Groovy. Clojure. If it's on the JVM, it works. (If you are expecting to use it for application-server development, there's no problem in expecting enterprisey-you to pay the man.)


This has just been announced in the JSConf EU conference in Berlin!


+France. Downloading now...


Some more invites:

bzT2PnaZUAAs9xxC

aEtYHuB2rcwgwMbS

dP98kyRETzZE7Wzx

ddcqwqVcaUEkaB7b

eseskmGpLmP7kM2E

bWTbxCUWSmgBMDkf

dPACYNXp7tRZ8kFz

cnSP2HH4HrA7EMLR

bw4GwWWfu65ZasuE

bCtf4mVwsn3XHqXW

arkg5rSX4DYLkWxN

cWLrMKFNXr9NAecu

aM8DtNHMcmsCfH4R

aKcRg8U8k36Ug4LT

bPq8eCGwRPALLnhm

azKVcqXuha9uZz69

eBSf3JWH5rzy6HBg


Used azKVcqXuha9uZz69. Thanks!


Some invites:

WsGEf4DdjjxxEyte, pJVGUTD4Vjn2LwhJ, fCD4SMwEf7JnwU9r, cmaqdqNDAHxZqYRe, ar3PMDrRkE22YWbd, dAXVxr4kk5b9NDT8


Thanks, I used this code fCD4SMwEf7JnwU9r!


Thanks! I used dAXVxr4kk5b9NDT8.


Hey, if you've got invites, here's my mail: [redacted]


Just got one, thanks.


Me too - pretty please!


tonyskn at gmail. Thanks :)


It was about time!


The awesome Chrome extension Hacker News Sidebar, which uses searchyc.com, is down too. Are there any alternative extensions or bookmarklets for automatically linking a page to its HN comment thread?


Consider applying for YC's Summer 2025 batch! Applications are open till May 13

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: