mirror of
https://github.com/mulgadc/spinifex.git
synced 2026-10-19 02:43:17 +00:00
ae06234009
isProductionLayout() keyed off /etc/spinifex alone. A node reset legitimately removes that directory, so spx silently fell back to the dev layout and rebuilt the whole node — configs, keys, nats.conf — under the invoking user's home while the systemd units kept reading /etc/spinifex. Cluster formation reported success and every service then failed to start. Detection now also accepts the installed systemd target, which setup.sh writes and a reset never touches, so the layout survives the reset that caused this. init and join no longer mkdir the production config dir either. Only setup.sh can rebuild the per-service subtree and its ownership, so recreating the top level would still leave a node that inits cleanly and dies at service start. They now refuse with the remedy instead.