github rjyo/osewa v0.1.8
osewa v0.1.8

2 hours ago

On macOS, an update no longer leaves the server down: a restart now checks that the server really came back, and fixes the one way launchd was seen refusing it.

  • Restarts check the server came back. osewa update, auto-update and osewa service restart used to report success once launchd or systemd took the restart, even when the server never started. They now wait for the new server and say clearly when it isn't running, with launchd's or systemd's own account of why. On macOS, launchd was seen refusing to spawn a freshly updated binary (spawn failed, OS_REASON_CODESIGNING), leaving the server down until someone restarted it by hand. When that happens, osewa now writes the binary again as a new file and restarts it once more, which is what fixed it by hand.
  • Updates are written to disk before they replace anything. The new binary was already written beside the old one and renamed over it; it is now also synced to disk first, and its 0755 mode no longer depends on the umask.

The restart check runs in the new build, so it covers updates from v0.1.7 to this release too. This release interoperates with v0.1.7 (p0-s1).

Don't miss a new osewa release

NewReleases is sending notifications on new releases.