Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 407590 Details for
Bug 555864
net-proxy/haproxy Allow additional command line options
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
adapted init script
haproxy.initd-r3 (text/plain), 1.12 KB, created by
Marcel Pennewiß
on 2015-07-25 12:56:10 UTC
(
hide
)
Description:
adapted init script
Filename:
MIME Type:
Creator:
Marcel Pennewiß
Created:
2015-07-25 12:56:10 UTC
Size:
1.12 KB
patch
obsolete
>#!/sbin/runscript ># Copyright 1999-2015 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: /var/cvsroot/gentoo-x86/net-proxy/haproxy/files/haproxy.initd-r2,v 1.1 2012/09/30 22:07:40 idl0r Exp $ > >extra_commands="checkconfig" >extra_started_commands="reload" > >command="/usr/bin/haproxy" >pidfile="/var/run/${SVCNAME}.pid" > >if [ -z "${CONFFILE}" -a -d "/etc/haproxy" -a -f "/etc/haproxy/${SVCNAME}.cfg" ]; then > CONFFILE=/etc/haproxy/${SVCNAME}.cfg >else > CONFFILE=/etc/${SVCNAME}.cfg >fi > >command_args="-D -p ${pidfile} -f ${CONFFILE} ${HAPROXY_OPTS}" > >depend() { > need net > use dns logger >} > >checkconfig() { > if [ ! -f "${CONFFILE}" ]; then > eerror "${CONFFILE} does not exist!" > return 1 > fi > > ebegin "Checking ${CONFFILE}" > $command -q -c -f "${CONFFILE}" ${HAPROXY_OPTS} > eend $? >} > >stop_pre() { > if [ "${RC_CMD}" = "restart" ]; then > checkconfig || return 1 > fi >} > >reload() { > ebegin "Reloading ${SVCNAME}" > checkconfig || { eerror "Reloading failed, please fix your ${CONFFILE} first"; return 1; } > $command -D -p "${pidfile}" -f "${CONFFILE}" ${HAPROXY_OPTS} -sf $(cat "${pidfile}") > eend $? >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 555864
:
407588
| 407590 |
407592