threefoldtech / zinit

A init replacement that feels like runit written in rust+tokio
Apache License 2.0
10 stars 1 forks source link

zinit issues #45

Closed despiegk closed 1 year ago

despiegk commented 1 year ago

could not shutdown

basezinitredis: zinit shutdown zinit: INFO (zinit::zinit) shutting down zinit: INFO (zinit::zinit) service 'redis' is scheduled for a shutdown basezinitredis: zinit: ERROR (zinit::app::api) failed to execute shutdown: EPERM: Operation not permitted

I had to remove it with a hard kill

muhamadazmy commented 1 year ago

zinit is built to run as a process manager to replace systemd. Hence it need to run as pid (init process). There are other ways to run it as a normal process (in debugging mode) in that case you are actively doing development on it and know exactly what you are doing.

So zinit can run mainly as follows:

Also running any command like zinit logs or other commands, calls the PID 1 over a unix socket to execute this command. hence you can't run it unless zinit init is actually running! so all other zinit commands are just an api call to the main process.

This means:

despiegk commented 1 year ago

this can be done more logical in my opinion

muhamadazmy commented 1 year ago

We can for sure improve the errors reporting always

xmonader commented 1 year ago

the issue for error reporting https://github.com/threefoldtech/zinit/pull/48