summaryrefslogtreecommitdiff
path: root/dev-db/mysql-init-scripts/files/log-s6
blob: d135c530cd4eee13088abc6c4a98f52aeba6e751 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

if [ -e ./env ] ; then source ./env ; else echo "failed to source env" ; fi
mkdir -p "/var/log/mysql/${SVCNAME}"
if [ ${S6_LOG_OPTIONS} ] ; then
	exec s6-log ${S6_LOG_OPTIONS}
else
	exec s6-log -b n20 S15000000 !"gzip -nq9" "/var/log/mysql/${SVCNAME}"
fi