Fixing pids for upgrade script