summary refs log tree commit diff
diff options
context:
space:
mode:
-rwxr-xr-xsv/nanoklogd/run2
-rwxr-xr-xsvlogtail1
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