themetman's picture

I am trying to put the site into Maintenance Mode using Drush.

I have tried this:

drush vset maintenance_mode 1
Command variable-set requires Drupal core version 6 or 7 to run.
The drush command 'vset maintenance_mode 1' could not be executed.

And This:

drush sset system.maintenance_mode TRUE
Command state-set requires Drupal core version 8+ to run.                                                                                                                                                                                                                      
The drush command 'sset system.maintenance_mode TRUE' could not be executed.

Without success.

I have looked through the output of the commands, but cannot find any reference to it. Is there a particular command for Backdrop to achieve this?

Accepted answer

hello @themetman! thanks for asking about drush.

 

there are no `drush vset` or `config-set` commands yet; there is a feature request open in the backdrop drush queue PRs welcome!

 

https://github.com/backdrop-contrib/drush/issues/196

 

I'm not positive mainenance mode is controlled by config (i'd have to look) if it is then the config-set feature request will solve this request if not we may need a separate issue in the backdrop drush issue queue to satisfy this.

Comments

hello @themetman! thanks for asking about drush.

 

there are no `drush vset` or `config-set` commands yet; there is a feature request open in the backdrop drush queue PRs welcome!

 

https://github.com/backdrop-contrib/drush/issues/196

 

I'm not positive mainenance mode is controlled by config (i'd have to look) if it is then the config-set feature request will solve this request if not we may need a separate issue in the backdrop drush issue queue to satisfy this.