Lines 38-44
checkconfig() {
Link Here
|
38 |
fi |
38 |
fi |
39 |
|
39 |
|
40 |
ebegin "Checking your configuration" |
40 |
ebegin "Checking your configuration" |
41 |
${command} ${command_args} --config.test_and_exit |
41 |
${command} ${command_args} --path.logs "${LS_LOG_DIR}/configcheck" --config.test_and_exit |
42 |
eend $? "Configuration error. Please fix your configuration files." |
42 |
eend $? "Configuration error. Please fix your configuration files." |
43 |
} |
43 |
} |
44 |
|
44 |
|
Lines 54-65
start_pre() {
Link Here
|
54 |
|
54 |
|
55 |
rc_ulimit="-n ${LS_OPEN_FILES}" |
55 |
rc_ulimit="-n ${LS_OPEN_FILES}" |
56 |
|
56 |
|
57 |
local d |
57 |
checkpath -d -o root:root "$(dirname "${pidfile}")" |
58 |
for d in "${LS_INSTALL_DIR}/data" "$(dirname "${pidfile}")" "${LS_LOG_DIR}"; do |
58 |
checkpath -d -o "${LS_USER}":"${LS_GROUP}" "${LS_INSTALL_DIR}/data" |
59 |
checkpath -d -o "${LS_USER}":"${LS_GROUP}" -m750 "$d" |
59 |
checkpath -d -o "${LS_USER}":"${LS_GROUP}" "${LS_INSTALL_DIR}/data/queue" |
60 |
chown -R "${LS_USER}":"${LS_GROUP}" "$d" |
60 |
checkpath -d -o "${LS_USER}":"${LS_GROUP}" "${LS_LOG_DIR}" |
61 |
done |
|
|
62 |
|
63 |
} |
61 |
} |
64 |
|
62 |
|
65 |
stop() { |
63 |
stop() { |