Branch: Tag:

2019-03-29

2019-03-29 16:54:44 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Start: Fixed signal handling issue --without-daemon.

When running --without-daemon an extra level of sub-shells
caused signals to the top-level shell to be lost.

Also adds some internal documentation.

Fixes [WS-438].

1228:    dp "You can use the administration interface in the server to see debug info."    else :; fi    -  if ( +  if { +  # NB: In this block both fd 1 and fd 2 go to the start_*.output file. +  # Fd 3 is mapped to stderr for the main start script.    (    # Minor race here wrt pid file cleanup.   
1315:       if test "x$daemonize" = "xyes"; then :; else    trap "stop_roxen $start_pid TERM start \"$canonicalconf\" \"start script\"" 2 15 +  dp "Waiting for start script to terminate..." 2>&3    wait;    signal_exit    fi -  ) 3>&2 </dev/null >"$DEBUGDIR/start_$FILES.output" 2>&1; then +  } 3>&2 </dev/null >"$DEBUGDIR/start_$FILES.output" 2>&1; then    trap "" 0    :    else