diff options
| author | Klaatu <[email protected]> | 2015-05-17 15:35:50 +1200 |
|---|---|---|
| committer | Klaatu <[email protected]> | 2015-05-17 15:35:50 +1200 |
| commit | e6961c90da554ef46c84f94d0db5ef37bb23f0c2 (patch) | |
| tree | e71acaa2790bae3d5dc8c56300a33111a3255b84 /examples/etc/ninit/logger/setup | |
| parent | b0de699679e8f1e39af847ed172d1ba605b4370c (diff) | |
example ninit scripts
Diffstat (limited to 'examples/etc/ninit/logger/setup')
| -rwxr-xr-x | examples/etc/ninit/logger/setup | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/examples/etc/ninit/logger/setup b/examples/etc/ninit/logger/setup new file mode 100755 index 0000000..29f93f2 --- /dev/null +++ b/examples/etc/ninit/logger/setup @@ -0,0 +1,18 @@ +#!/bin/dash + +export PATH=/usr/local/bin:/bin:/usr/bin +# echo logger setup +# ls -la / | grep dev + +check_dir () { + if [ -x $1/current ] ; then + /bin/true + else + echo '****** unclean boot' | \ + multilog T !gzip n200 $1 + for f in $1/*.u ; do gzip -9f $f 2> /dev/null; done + fi +} + +check_dir /var/log/qmail +# check_dir /var/log/qauth |
