Use exec in squid.bsh so signals pass through correctly

On shutdown with unit files, this image can lead to a very long stall due to not passing signals from bash to squid properly.
This commit is contained in:
Will Rouesnel 2016-05-18 13:11:10 +10:00
parent 3e01ce28a8
commit 876e6e4b01
1 changed files with 2 additions and 2 deletions

View File

@ -106,8 +106,8 @@ if [ "$PROXYCHAIN" = "yes" ]; then
exit 1
fi
# Start squid with proxychains
proxychains4 squid -N
exec proxychains4 squid -N
else
# Start squid normally
squid -N
exec squid -N
fi