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
Hi @cgwalters, to drop .socket and .service units, should remove ipc mode, make all subcommand working like generate-install-metadata, instead of creating connection with ClientToDaemonConnection::new(), connect(), send(), and shutdown(), is this right? Thanks!
Basically we detect if we're running in systemd; if we're not, we re-exec ourselves via systemd-run. Then we can just directly run code in what is now the daemon.
I think an important aspect of this is that we retain something like --unit bootupd which acts as a lock - only one unit with that name can run at a time to avoid two concurrent invocations breaking things.
Activity
EyeCantCU commentedon Dec 16, 2023
Hello!
I've opened a pull request here: #586
Please let me know if there's anything that looks like it needs to be changed :)
cgwalters commentedon May 21, 2024
I think this still makes sense, yes.
HuijingHei commentedon May 21, 2024
Thanks @cgwalters for the confirmation, will look at this.
HuijingHei commentedon May 22, 2024
Hi @cgwalters, to drop
.socketand.serviceunits, should remove ipc mode, make all subcommand working likegenerate-install-metadata, instead of creating connection withClientToDaemonConnection::new(),connect(),send(), andshutdown(), is this right? Thanks!Drop systemd service
Drop systemd service
cgwalters commentedon May 22, 2024
I typed this out, only compile tested but hopefully illustrates the idea
cgwalters commentedon May 22, 2024
Basically we detect if we're running in systemd; if we're not, we re-exec ourselves via systemd-run. Then we can just directly run code in what is now the daemon.
I think an important aspect of this is that we retain something like
--unit bootupdwhich acts as a lock - only one unit with that name can run at a time to avoid two concurrent invocations breaking things.Drop systemd service
Drop systemd service
Drop systemd service
4 remaining items
Drop systemd service
Drop systemd service
Drop systemd service
Drop systemd service
Drop systemd service
Drop systemd service
Drop systemd service
Drop systemd service
modules/contrib/bootupd: Remove module
modules/contrib/bootupd: Remove module
Bootable Containers: Enable bootupd
overlay.d/05core: Remove obsolete 'bootupd.socket' preset
overlay.d/05core: Remove obsolete 'bootupd.socket' preset
overlay.d/05core: Remove obsolete 'bootupd.socket' preset