summary refs log tree commit diff
path: root/svlogtail
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2014-07-19 00:12:16 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2014-07-19 00:12:16 +0200
commit93b84bfff5b41e491879864e4d9f6c62dc4b10b4 (patch)
treec1c1fad6f2afa3a83652f795e02cb5ee701c05b2 /svlogtail
parent94d2026cca60c62b73e4a569eb35c8cbdbaa0d97 (diff)
downloadsocklog-void-93b84bfff5b41e491879864e4d9f6c62dc4b10b4.tar.gz
socklog-void-93b84bfff5b41e491879864e4d9f6c62dc4b10b4.tar.xz
socklog-void-93b84bfff5b41e491879864e4d9f6c62dc4b10b4.zip
svlogtail: fail for nonexistent logs
Diffstat (limited to 'svlogtail')
-rwxr-xr-xsvlogtail1
1 files changed, 1 insertions, 0 deletions
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