From 73fb62661853c4d94c2ddb987f9b81691e4b0334 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Mon, 17 Dec 2018 17:25:06 -0500 Subject: [PATCH] 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. --- plugins/scheduler-docker-local/install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/scheduler-docker-local/install b/plugins/scheduler-docker-local/install index ef6b8aac6..464624d75 100755 --- a/plugins/scheduler-docker-local/install +++ b/plugins/scheduler-docker-local/install @@ -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 }