fixup svd: support dry-run

This commit is contained in:
Zhaofeng Li 2022-09-21 22:30:40 +00:00
parent 42b95bd00f
commit 06d245c0af

View file

@ -179,10 +179,10 @@ in {
build.activationAfter.reloadSupervisord = ''
if [ ! -e "${config.supervisord.socketPath}" ]; then
echo "Starting supervisord..."
${cfg.package}/bin/supervisord -c /etc/supervisord.conf
$DRY_RUN_CMD ${cfg.package}/bin/supervisord -c /etc/supervisord.conf
else
echo "Reloading supervisord..."
${cfg.package}/bin/supervisorctl -c /etc/supervisord.conf update
$DRY_RUN_CMD ${cfg.package}/bin/supervisorctl -c /etc/supervisord.conf update
fi
'';
};