diff options
author | Britney Fransen <brfransen@gmail.com> | 2018-09-06 16:35:27 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2018-09-06 16:35:27 (GMT) |
commit | 5669815ec3a539cf7b5ac7d8da2cbba3aeff44be (patch) | |
tree | f13051093a52f47f5954c2ee2a783bc2f0f62f96 /abs/core/runit-scripts | |
parent | 8d35f28049488f2585ef765bf48e7a58958fd587 (diff) | |
parent | 04697136037cb5341ee6c051f8aaa265c0400c82 (diff) | |
download | linhes_pkgbuild-5669815ec3a539cf7b5ac7d8da2cbba3aeff44be.zip linhes_pkgbuild-5669815ec3a539cf7b5ac7d8da2cbba3aeff44be.tar.gz linhes_pkgbuild-5669815ec3a539cf7b5ac7d8da2cbba3aeff44be.tar.bz2 |
Merge branch 'testing'
Diffstat (limited to 'abs/core/runit-scripts')
-rwxr-xr-x | abs/core/runit-scripts/PKGBUILD | 4 | ||||
-rwxr-xr-x | abs/core/runit-scripts/runitscripts/services/mysql/run | 9 | ||||
-rwxr-xr-x | abs/core/runit-scripts/runitscripts/services/postfix/run | 2 |
3 files changed, 12 insertions, 3 deletions
diff --git a/abs/core/runit-scripts/PKGBUILD b/abs/core/runit-scripts/PKGBUILD index 1c4c342..777d89f 100755 --- a/abs/core/runit-scripts/PKGBUILD +++ b/abs/core/runit-scripts/PKGBUILD @@ -1,6 +1,6 @@ pkgname=runit-scripts -pkgver=8.4 -pkgrel=5 +pkgver=8.5 +pkgrel=2 pkgdesc="collection of startup scripts for runit" url="http://smarden.org/runit/" license=('BSD') diff --git a/abs/core/runit-scripts/runitscripts/services/mysql/run b/abs/core/runit-scripts/runitscripts/services/mysql/run index de76962..8fad493 100755 --- a/abs/core/runit-scripts/runitscripts/services/mysql/run +++ b/abs/core/runit-scripts/runitscripts/services/mysql/run @@ -35,6 +35,15 @@ if [ ! -d /var/run/mysqld ]; then mkdir -p /var/run/mysqld chown mysql /var/run/mysqld fi + +#check .err and truncate if more than 30000 lines +ErrFile="/data/srv/mysql/`hostname`.err" +if [[ $(wc -l < $ErrFile) -gt 30000 ]] +then + tail -n 30000 "$ErrFile" > "$ErrFile.tmp" && mv "$ErrFile.tmp" "$ErrFile" + chown mysql.mysql "$ErrFile" +fi + HOME=/etc/mysql/ MYSQLADMIN='/usr/bin/mysqladmin' diff --git a/abs/core/runit-scripts/runitscripts/services/postfix/run b/abs/core/runit-scripts/runitscripts/services/postfix/run index 1fa526e..cd5a551 100755 --- a/abs/core/runit-scripts/runitscripts/services/postfix/run +++ b/abs/core/runit-scripts/runitscripts/services/postfix/run @@ -5,4 +5,4 @@ export TERM=linux . /etc/rc.d/functions stat_runit "Starting postfix" -exec /usr/lib/postfix/master -D +exec /usr/lib/postfix/bin/master -D |