From c316bfae25cef64b60a8f3e3dfeb215d44f28e92 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Tue, 16 Feb 2010 18:04:37 +0300 Subject: [PATCH] More compliance with LSB The init-script shall return 4 in case then user doesn't have sufficient privileges for action. See http://refspecs.freestandards.org/LSB_3.2.0/LSB-Core-generic/LSB-Core-generic/iniscrptact.html Signed-off-by: Peter Lemenkov --- src/ejabberdctl.template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ejabberdctl.template b/src/ejabberdctl.template index 5567a90af..9ede77dfe 100644 --- a/src/ejabberdctl.template +++ b/src/ejabberdctl.template @@ -70,7 +70,7 @@ if [ "$ID" -eq "$EJID" ] ; then fi if [ "$EXEC_CMD" = "false" ] ; then echo "This command can only be run by root or the user $INSTALLUSER" >&2 - exit 1 + exit 4 fi NAME=-name