[startup script] Replacement of increment method in restart loop