mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-28 20:18:08 -07:00
Closes: https://bugs.gentoo.org/665314 Signed-off-by: Conrad Kostecki <conrad@kostecki.com> Package-Manager: Portage-2.3.49, Repoman-2.3.10 Signed-off-by: Michał Górny <mgorny@gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/9787
28 lines
580 B
Plaintext
28 lines
580 B
Plaintext
#!/sbin/openrc-run
|
|
# Copyright 1999-2018 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
config="/etc/${RC_SVCNAME}.conf"
|
|
extra_commands="checkconfig"
|
|
name="Mcproxy"
|
|
pidfile="/run/${RC_SVCNAME}.pid"
|
|
|
|
command="mcproxy"
|
|
command_background="true"
|
|
command_args="${MCPROXY_OPTS} -f ${config}"
|
|
command_args_checkconfig="-c"
|
|
procname="${RC_SVCNAME}"
|
|
|
|
checkconfig() {
|
|
${command} ${command_args_checkconfig}
|
|
}
|
|
|
|
start_pre() {
|
|
if [ ! -f "${config}" ]; then
|
|
eerror "Please create ${config} before starting ${name}!"
|
|
return 1
|
|
else
|
|
return 0
|
|
fi
|
|
}
|