Skip to content

Commit

Permalink
daemontools: limit size of the logs
Browse files Browse the repository at this point in the history
Multilog was started with max 8 logs of 100k each, so roughly 800k max per
process. With e.g. 40 processes that is 32M or so, which is quite a lot
given the data partition is a 28M or so on a ccgx. Since processes ought
to log only errors of major events and not many machines have so many running
processes, it shouldn't be a practical problem, but it is better if it can be
guaranteed the logs won't eat all available space on /data, since e.g.
vrmlogger needs space as well.

note: multilog will remove the old ones, but only when it logrotates.
note: old log files of renamed / removed services won't be removed with this.
  • Loading branch information
jhofstee committed Jan 29, 2019
1 parent cf17db4 commit 9ce14ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion meta-third-party/classes/daemontools.bbclass
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ do_install_append() {
if [ "x${DAEMONTOOLS_LOG_DIR}" = "x" ]; then
DAEMONTOOLS_LOG_DIR="${DAEMONTOOLS_LOG_DIR_PREFIX}/${PN}"
fi
echo "exec multilog t s99999 n8 ${DAEMONTOOLS_LOG_DIR}" >> ${SERVICE}/log/run
echo "exec multilog t s25000 n4 ${DAEMONTOOLS_LOG_DIR}" >> ${SERVICE}/log/run
chmod 755 ${SERVICE}/log/run

if [ "x${DAEMONTOOLS_DOWN}" != "x" ]; then
Expand Down

0 comments on commit 9ce14ef

Please sign in to comment.