# Liquibase does not read System property -Dliquibase.shouldRun=false

**URL:** <https://forum.liquibase.org/t/liquibase-does-not-read-system-property-dliquibase-shouldrun-false/6009>\
**Category:** Liquibase Development\
**Created:** [October 7, 2021, 12:17pm UTC](https://forum.liquibase.org/t/liquibase-does-not-read-system-property-dliquibase-shouldrun-false/6009 "2021-10-07T12:17:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pvlocal](https://avatars.discourse-cdn.com/v4/letter/p/50afbb/32.png) [@pvlocal](https://forum.liquibase.org/u/pvlocal)\
**Post date:** [October 7, 2021, 12:17pm UTC](https://forum.liquibase.org/t/liquibase-does-not-read-system-property-dliquibase-shouldrun-false/6009/1 "2021-10-07T12:17:12Z")

</div>

We use following Java code to run Liquibase update.  
conn = ds.getConnection();  
Database database = DatabaseFactory.getInstance().findCorrectDatabaseImplementation(new JdbcConnection(conn));  
Liquibase liquibase = new liquibase.Liquibase(“liquibase-ChangeLog-V1.0.xml”, new ClassLoaderResourceAccessor(), database);  
liquibase.update(new Contexts(), new LabelExpression());

This above code works fine but we can’t stop liquibase from being executed if we provide **-Dliquibase.shouldRun=false** when starting our payara JVM .  
Is this the indented behavior ?

---

<div class="post-metadata">

**Author:** ![aditi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.liquibase.org/aditi/32/356_2.png) [@aditi](https://forum.liquibase.org/u/aditi)\
**Post date:** [October 12, 2021, 3:09pm UTC](https://forum.liquibase.org/t/liquibase-does-not-read-system-property-dliquibase-shouldrun-false/6009/2 "2021-10-12T15:09:34Z")

</div>

Hi @pvlocal,

You can set this property as JAVA\_OPTS.  
Eg, `export JAVA_OPTS=-Dliquibase.should.run=false`
