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
This commit is contained in:
Deoren Moor 2015-08-02 13:27:37 -05:00
parent 8c5cca8a0a
commit 6f2a9f4a02

View File

@ -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() {