Auteur: karl Date: À: dng Sujet: Re: [DNG] Init respawns - was: Be prepared for the fall of systemd
Steve Litt: > On Wed, 2022-08-03 at 09:36 +0200, marc wrote:
> > Karl Hammar
> > > Steve Litt: ... > > > 1) Does Busybox init require the daemon to background itself?
> > So I seem no reason why "nohup daemon > /var/log/logfile &" isn't sufficient
> > for this, or is there something I am not aware of ?
>
> The preceding involves PID files, which can get mixed up or stale. Also, the
> nohup.out file can grow to a monstrosity, although that can be handled (no pun
> intended) by redirection to /dev/null. ...
There is no requirement of pid files in the above. The notion of pid
files comes from some req. that you should be able to do
./some_script stop. If you don't care about scripts like thoose in
/etc/init.d there is no need for pid files, and if you manage the
startup and shutdown of single processes on your own then the ps
output is sufficient.
Note, there is no godsent decry to have anything like a process
manager, things works perfectly fine without that cruft, it all
depends on your application and your own taste.