News for hackers. Stuff that matters.
Re:Broken by design: systemd by zanny on Sunday February 09, 2014 @07:04PM (#7208140)
The article remarks its pid 1 to catch "bad" services that disown their parents and get defaulted to pid 1.

But I figure if they switched the bulk of systemd to pid 2, any negligent services would get complained about until they were fixed.

Re:Broken by design: systemd by dalias on Sunday February 09, 2014 @07:30PM (#7208267)
Almost all daemons have a command line or config file option to skip "daemonizing" so that the parent can watch the PID correctly. For the few that don't, you can fix them, hack them (e.g. LD_PRELOAD wrappers to shutdown their bogus double-forking), seccomp-ptrace them, or simply wrap them with a legacy-style monitor that reads the pid file and forwards signals it receives to the real pid (this last option of course doesn't fix the race conditions inherent in such usage).
Re:Broken by design: systemd by rcxdude on Sunday February 09, 2014 @07:43PM (#7208334)
This is something systemd can already handle. Linux has APIs to change the 'reaper' process (PR_SET_CHILD_SUBREAPER) so that orphaned processes move to a non PID 1 process.