cli.sh -v setApplicationPolicy -s MyApplication MAINTAIN_ACTIVE
INFO: Reading configuration values from etc/node_config.properties
INFO: local cache is up to date, using it
INFO: setting application MyApplication policy to MAINTAIN_ACTIVE SOF
To disable stopOnFailure, run the command without the -s command option.