diff options
author | Christian Neukirchen <chneukirchen@gmail.com> | 2014-07-19 00:12:16 +0200 |
---|---|---|
committer | Christian Neukirchen <chneukirchen@gmail.com> | 2014-07-19 00:12:16 +0200 |
commit | 93b84bfff5b41e491879864e4d9f6c62dc4b10b4 (patch) | |
tree | c1c1fad6f2afa3a83652f795e02cb5ee701c05b2 | |
parent | 94d2026cca60c62b73e4a569eb35c8cbdbaa0d97 (diff) | |
download | socklog-void-93b84bfff5b41e491879864e4d9f6c62dc4b10b4.tar.gz socklog-void-93b84bfff5b41e491879864e4d9f6c62dc4b10b4.tar.xz socklog-void-93b84bfff5b41e491879864e4d9f6c62dc4b10b4.zip |
svlogtail: fail for nonexistent logs
-rwxr-xr-x | sv/nanoklogd/run | 2 | ||||
-rwxr-xr-x | svlogtail | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/sv/nanoklogd/run b/sv/nanoklogd/run index a3141ea..8ae0b39 100755 --- a/sv/nanoklogd/run +++ b/sv/nanoklogd/run @@ -1,2 +1,2 @@ #!/bin/sh -exec nanoklogd +exec chpst -u nobody:nogroup nanoklogd diff --git a/svlogtail b/svlogtail index f61f262..4daa2f9 100755 --- a/svlogtail +++ b/svlogtail @@ -16,6 +16,7 @@ else cur="$cur /var/log/socklog/$log/current" else echo "no logs for $log" 1>&2 + exit 1 fi done cat $old $cur | sort |