Improve logging
Improve logging

Add "e" (O_CLOEXEC) to all fopen() calls.
Remove system() call and replace it by fopen() and friends.
This also fixes bug 368933

X-Gentoo-Bug: 368933
X-Gentoo-Bug-URL: https://bugs.gentoo.org/368933

williamh/openrc,dwfreed/openrc,williamh/openrc,dwfreed/openrc,OpenRC/openrc,williamh/openrc,OpenRC/openrc,OpenRC/openrc,dwfreed/openrc