fixup svd: start supervisord in background

This removes the 1-second delay between supervisord starting and forking
into background.
This commit is contained in:
Zhaofeng Li 2022-10-01 21:52:57 +00:00
parent 9222c0334b
commit ba1526a6ba

View file

@ -17,9 +17,9 @@ writeText "login-inner" ''
fi
${lib.optionalString config.supervisord.enable ''
if [ ! -e "${config.supervisord.socketPath}" ]; then
(if [ ! -e "${config.supervisord.socketPath}" ]; then
${config.supervisord.package}/bin/supervisord -c /etc/supervisord.conf || echo "Warning: supervisord failed to start"
fi
fi&)
''}
${lib.optionalString config.build.initialBuild ''