eventd: Hook signals only if we run the main loop

Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
eventd/config: Tiny optimization

Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>