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 committed 2018-12-17 17:27:42 -05:00
1 parent 4f1cd2d30c
commit 73fb626618
1 file changed
+1 -1
+1 -1
View File
@@ -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
*/5 * * * * $DOKKU_SYSTEM_USER $DOKKU_PATH ps:retire */5 * * * * $DOKKU_SYSTEM_USER $DOKKU_PATH ps:retire >> /var/log/dokku/retire.log 2>&1
EOF EOF
fi fi
} }