Generate PID-File based on libbsd and its man page example.
Log error if keyboard/backlight setting did not work.