summaryrefslogtreecommitdiffstats
path: root/abs/core/runit-scripts/runitscripts/1
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-12-17 20:10:04 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-12-17 20:10:04 (GMT)
commita446b6d544450122051e13074f1d874e0d03c64c (patch)
tree46ef73392877f36e17f35c02e8ba6ab9d1c4a349 /abs/core/runit-scripts/runitscripts/1
parente026945f45ffdcea5072e645b762940e85506606 (diff)
downloadlinhes_pkgbuild-a446b6d544450122051e13074f1d874e0d03c64c.zip
linhes_pkgbuild-a446b6d544450122051e13074f1d874e0d03c64c.tar.gz
linhes_pkgbuild-a446b6d544450122051e13074f1d874e0d03c64c.tar.bz2
runit-scripts: removed ldm, adding udevil. Also added log_care to 1 so that it runs on startup.
This ensures that logs are cleaned up and rotated out of the way even if the system is offline when the cron job is supposed to run. refs #883
Diffstat (limited to 'abs/core/runit-scripts/runitscripts/1')
-rwxr-xr-xabs/core/runit-scripts/runitscripts/18
1 files changed, 8 insertions, 0 deletions
diff --git a/abs/core/runit-scripts/runitscripts/1 b/abs/core/runit-scripts/runitscripts/1
index 0cb8307..9463e60 100755
--- a/abs/core/runit-scripts/runitscripts/1
+++ b/abs/core/runit-scripts/runitscripts/1
@@ -23,6 +23,14 @@ stat_done
/usr/sbin/ethtool -s eth0 wol g 2>/dev/null
/usr/sbin/ethtool -s eth1 wol g 2>/dev/null
/usr/sbin/ethtool -s eth2 wol g 2>/dev/null
+#cleanup of log files
+if [ -f /etc/cron.daily/log_care ]
+then
+ stat_busy "Cleaning up old logs"
+ /etc/cron.daily/log_care 2>/dev/null >/dev/null &
+ stat_done
+fi
+
#user added stuff for level 1 of runit
if [ -e /etc/runit/1.local ]
then