- Improve PID file removing errors logging
- Make PID file creating errors fatal
- Move all PID file stuff to init.cpp
It is only used from init.cpp.
Move-only refactoring.
This is a backport of Core PR15278
The linter was skipped because we don't have that linter.