From 6f2a9f4a0267eb56bee69f6bc94f58029b66bc8f Mon Sep 17 00:00:00 2001 From: Deoren Moor Date: Sun, 2 Aug 2015 13:27:37 -0500 Subject: [PATCH] Update init script to reference /etc/default file Instead of requiring the user to modify the /etc/init.d/httpuploadcomponent file, the init.d script should support checking for and including the corresponding /etc/default/httpuploadcomponent conf file (if present). This will allow the user to customize the settings for the daemon to match their specific environment. References: - https://www.debian.org/doc/debian-policy/ch-opersys.html --- contrib/httpuploadcomponent | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/contrib/httpuploadcomponent b/contrib/httpuploadcomponent index 5dcedce..4200dbb 100755 --- a/contrib/httpuploadcomponent +++ b/contrib/httpuploadcomponent @@ -23,6 +23,10 @@ USER=prosody export LOGNAME=$USER test -x $DAEMON || exit 0 + +# Allow user to override default values listed above +[ -r /etc/default/$NAME ] && . /etc/default/$NAME + set -e function _start() {