mirror of
https://github.com/moparisthebest/HttpUploadComponent
synced 2024-11-17 14:44:59 -05:00
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:
parent
8c5cca8a0a
commit
6f2a9f4a02
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user