You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The daemon should record its version when it starts so pboss daemon status can determine what version is actually running.
It would also be useful to track the runtime information, since pboss is runtime-agnostic:
pboss version
runtime
runtime version
PID
startup time
5. Detect stale daemons after runtime/package upgrades
The version tracking should also handle cases where the runtime itself is upgraded.
For example:
bun upgrade
could update the Bun installation while an existing pboss daemon is still running using the previous installation/code.
The daemon should therefore be able to identify that the currently running process is no longer using the current pboss installation/runtime.
Example
After upgrading pboss:
$ pboss daemon status
Daemon: running
PID: 12345
pboss: 1.2.0
Installed: 1.3.0
Status: outdated
A newer pboss version is installed.
Run `pboss daemon restart` to apply the update.
Activity
feat(daemon): the lifecycle, owned — start/stop/restart/status that n…