Merge pull request #3334 from dokku/josegonzalez-patch-1

refactor: run every 5 minutes instead of 2
This commit is contained in:
Jose Diaz-Gonzalez
2018-12-12 12:27:38 -06:00
committed by GitHub

View File

@@ -33,10 +33,10 @@ EOF
cat<<EOF > /etc/systemd/system/dokku-retire.timer cat<<EOF > /etc/systemd/system/dokku-retire.timer
[Unit] [Unit]
Description=Run dokku-retire.service every 2 minutes Description=Run dokku-retire.service every 5 minutes
[Timer] [Timer]
OnCalendar=*:0/2 OnCalendar=*:0/5
EOF EOF
if command -v systemctl &>/dev/null; then if command -v systemctl &>/dev/null; then
systemctl reenable dokku-redeploy systemctl reenable dokku-redeploy
@@ -46,7 +46,7 @@ else
PATH=/usr/local/bin:/usr/bin:/bin PATH=/usr/local/bin:/usr/bin:/bin
SHELL=/bin/bash SHELL=/bin/bash
2 * * * * $DOKKU_SYSTEM_USER $DOKKU_PATH ps:retire */5 * * * * $DOKKU_SYSTEM_USER $DOKKU_PATH ps:retire
EOF EOF
fi fi
} }