Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 628558 | Differences between
and this patch

Collapse All | Expand All

(-)a/app-admin/logstash-bin/files/logstash.initd (-7 / +5 lines)
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() {
(-)a/app-admin/logstash-bin/logstash-bin-5.4.3-r1.ebuild (-3 / +4 lines)
Lines 52-60 src_install() { Link Here
52
}
52
}
53
53
54
pkg_postinst() {
54
pkg_postinst() {
55
	ewarn "The default user changed from root to ${MY_PN}. If you wish to run as root (for"
55
	ewarn "The default user changed from root to ${MY_PN}. Please ensure proper permissions"
56
	ewarn "example to read local logs), be sure to change LS_USER and LS_GROUP in"
56
	ewarn "for any input or output files, including the own logs of ${MY_PN}."
57
	ewarn "${EROOT%/}/etc/conf.d/${MY_PN}"
57
	ewarn "If you wish to run as root (for example to read local logs), be sure to change"
58
	ewarn "LS_USER and LS_GROUP in ${EROOT%/}/etc/conf.d/${MY_PN}."
58
	ewarn
59
	ewarn
59
	ewarn "Self installed plugins are removed during Logstash upgrades (Bug #622602)"
60
	ewarn "Self installed plugins are removed during Logstash upgrades (Bug #622602)"
60
	ewarn "Install the plugins via eselect module that will automatically re-install"
61
	ewarn "Install the plugins via eselect module that will automatically re-install"

Return to bug 628558