Ga naar inhoud
Linux/POSIX-foutenWaarschuwing
SIGHUP (1)

SIGHUP (1) — Ophang-signaal

De besturingsterminal werd gesloten of het sessieleidersproces is beëindigd.

linuxmacosunix

Wat veroorzaakt deze fout

De terminalsessie werd verbroken (SSH-time-out, terminal gesloten). Veel daemons interpreteren SIGHUP als verzoek om configuratiebestanden opnieuw te laden.

Hoe op te lossen

Gebruik nohup of screen/tmux om processen actief te houden na uitloggen. Implementeer voor daemons een SIGHUP-handler om de configuratie opnieuw te laden.

Voorbeeld

# Send SIGHUP to reload config
kill -HUP $(pidof nginx)
# Trap SIGHUP in bash
trap 'echo reloading' HUP
Officiële documentatie

Gerelateerde foutcodes