aboutsummaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2022-04-26 00:01:25 -0400
committerB. Watson <yalhcru@gmail.com>2022-04-29 10:30:54 -0400
commit492e55862b8a4e92b7aceb7fba9aee622de18216 (patch)
tree1bb5f4c61634f037e3f3a6826542aeff69615871 /system
parentec48e88db5500748b73f0da3aa842ae3565d476f (diff)
system/nsca-ng: Exit nonzero if user/group don't exist.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'system')
-rw-r--r--system/nsca-ng/README5
-rw-r--r--system/nsca-ng/nsca-ng.SlackBuild2
2 files changed, 6 insertions, 1 deletions
diff --git a/system/nsca-ng/README b/system/nsca-ng/README
index 0be4a53ceab82..35543c9d590d3 100644
--- a/system/nsca-ng/README
+++ b/system/nsca-ng/README
@@ -6,3 +6,8 @@ results, downtimes and many other commands to Nagios or Icinga.
See README.SLACKWARE (which is also installed with the package docs) for
setup, configuration, and usage hints.
+
+You must have nsca user and a group to run this script:
+
+# groupadd -g 302 nsca
+# useradd -u 302 -d /dev/null -s /bin/false -g nsca nsca
diff --git a/system/nsca-ng/nsca-ng.SlackBuild b/system/nsca-ng/nsca-ng.SlackBuild
index 09fa4ebf3327b..3cd0cd8c9338e 100644
--- a/system/nsca-ng/nsca-ng.SlackBuild
+++ b/system/nsca-ng/nsca-ng.SlackBuild
@@ -76,7 +76,7 @@ cat << EOF
EOF
- exit
+ exit 1
fi
set -e