feat: Redirect ps:retire output to a log file

This will allow systems to properly monitor whether retiring old containers works.

Note that the file will be logrotated by the 20_events logrotate config.
This commit is contained in:
Jose Diaz-Gonzalez
2018-12-17 17:25:06 -05:00
parent 4f1cd2d30c
commit 73fb626618

View File

@@ -46,7 +46,7 @@ else
PATH=/usr/local/bin:/usr/bin:/bin
SHELL=/bin/bash
*/5 * * * * $DOKKU_SYSTEM_USER $DOKKU_PATH ps:retire
*/5 * * * * $DOKKU_SYSTEM_USER $DOKKU_PATH ps:retire >> /var/log/dokku/retire.log 2>&1
EOF
fi
}