https://github.com/dokku/dokku-cron-restart
https://github.com/dokku/dokku-cron-restart
auto-restart cron dokku dokku-plugin paas
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dokku/dokku-cron-restart
- Owner: dokku
- License: mit
- Created: 2023-05-29T19:39:24.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2025-04-21T03:40:25.000Z (6 months ago)
- Last Synced: 2025-06-09T12:52:20.899Z (4 months ago)
- Topics: auto-restart, cron, dokku, dokku-plugin, paas
- Language: Shell
- Homepage:
- Size: 63.5 KB
- Stars: 6
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dokku cron-restart [](https://github.com/dokku/dokku-cron-restart/actions/workflows/ci.yml?query=branch%3Amaster) [](https://webchat.libera.chat/?channels=dokku)
Official cron-restart plugin for dokku.
## Requirements
- dokku 0.30.x+
- docker 1.8.x## Installation
```shell
# on 0.30.x+
sudo dokku plugin:install https://github.com/dokku/dokku-cron-restart.git cron-restart
```## Commands
cron-restart:report [--single-info-flag] # displays a cron-restart report for one or more apps
cron-restart:set # 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
```shell
# usage
dokku cron-restart:report [--single-info-flag]
```flags:
- `--schedule`: show the service configuration directory
Get cron-restart report for all apps:
```shell
dokku cron-restart:report
```Get cron-restart report for an app:
```shell
dokku cron-restart:report lollipop
```You can also retrieve a specific piece of report info via flags:
```shell
dokku cron-restart:report lollipop --schedule
```### set or clear a cron-restart property for an app
```shell
# usage
dokku cron-restart:set
```Schedule a restart:
> 'value' is a crontab expression, eg. `0 3 * * *` for each day at 3am
```shell
dokku cron-restart:set lollipop schedule '0 3 * * *'
```### show the generated config
```shell
# usage
dokku cron-restart:show-config
```Shows the generated crontab config relevant to cron-restart:
```shell
dokku cron-restart:show-config
```