On 21/11/2023 11:40 am, Juergen Gross wrote: > The "-N" (do not daemonize) command line option is of questionable use: > its sole purpose seems to be to aid debugging of xenstored by making it > easier to start xenstored under gdb, or to see any debug messages > easily. > > Debug messages can as well be sent to syslog(), while gdb can be > attached to the daemon easily. The only not covered case is an error > while initializing xenstored, but this could be handled e.g. by saving > a core dump, which can be analyzed later. > > The call of talloc_enable_leak_report_full() done only with "-N" > specified is no longer needed, as the same can be achieved via > "xenstore-control memreport". > > Signed-off-by: Juergen Gross <[email protected]>
Systemd wants daemons to not fork, because systemd can start them up in a better-prescribed environment than deamonise() can make. It was a lazy port to system which has caused us not to be using -N in the first place. So no - I think this option specifically wants to stay, and the systemd integration improved. ~Andrew
