Skip to content

dokku/dokku-cron-restart

Repository files navigation

dokku cron-restart Build Status IRC Network

Official cron-restart plugin for dokku.

Requirements

  • dokku 0.30.x+
  • docker 1.8.x

Installation

# on 0.30.x+
sudo dokku plugin:install https://github.com/dokku/dokku-cron-restart.git cron-restart

Commands

cron-restart:report <app> [--single-info-flag] # displays a cron-restart report for one or more apps
cron-restart:set <app> <key> <value>           # set or clear a cron-restart property for an app
cron-restart:show-config                       # show the generated config

Usage

Help for any commands can be displayed by specifying the command as an argument to cron-restart:help. Plugin help output in conjunction with any files in the docs/ folder is used to generate the plugin documentation. Please consult the cron-restart:help command for any undocumented commands.

Basic Usage

displays a cron-restart report for one or more apps

# usage
dokku cron-restart:report <app> [--single-info-flag]

flags:

  • --schedule: show the service configuration directory

Get cron-restart report for all apps:

dokku cron-restart:report

Get cron-restart report for an app:

dokku cron-restart:report lollipop

You can also retrieve a specific piece of report info via flags:

dokku cron-restart:report lollipop --schedule

set or clear a cron-restart property for an app

# usage
dokku cron-restart:set <app> <key> <value>

Schedule a restart:

'value' is a crontab expression, eg. 0 3 * * * for each day at 3am

dokku cron-restart:set lollipop schedule '0 3 * * *'

show the generated config

# usage
dokku cron-restart:show-config

Shows the generated crontab config relevant to cron-restart:

dokku cron-restart:show-config