Branch: Tag:

2016-05-17

2016-05-17 08:56:43 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Start script: Use a subshell for the restart.

Fixes [bug 7689 (#7689)].

1154:    fi    # Avoid duplicate start scripts if we got a pid file.    if [ -f "$pidfile" ]; then -  { +  (    if read roxenpid && read scriptpid; then    if roxenp "$scriptpid" "start" "$canonicalconf" 2>/dev/null ; then    if [ "$stop"x = x ]; then
1174:    exit 1    fi    fi -  } < "$pidfile" || { +  ) < "$pidfile" || {    # NB: The exits above just exit the subshell used for the    # redirect. Adjust the exit codes and exit for real.    [ "$?" = "2" ];