Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 319422 Details for
Bug 426818
net-analyzer/zabbix - needs /var/run/zabbix to run the agentd
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Fixed bug in previous init script
zabbix-agentd (text/plain), 1.27 KB, created by
zunkree
on 2012-07-27 15:36:00 UTC
(
hide
)
Description:
Fixed bug in previous init script
Filename:
MIME Type:
Creator:
zunkree
Created:
2012-07-27 15:36:00 UTC
Size:
1.27 KB
patch
obsolete
>#!/sbin/runscript ># Copyright 1999-2011 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: /var/cvsroot/gentoo-x86/net-analyzer/zabbix/files/1.6.6/init.d/zabbix-agentd,v 1.3 2011/12/31 20:47:13 idl0r Exp $ > >depend() { > need net > provide zabbix-agent > use zabbix-server >} > >zabbix_get_var() { > awk 'BEGIN { FS="=" } $1 == "'$1'" { print $2; exit }' ${CONFIGFILE} >} > >CONFIGFILE="/etc/zabbix/zabbix_agentd.conf" >if [ ! -f ${CONFIGFILE} ] ; then > eerror "No config file present" > return 1 >fi >PIDFILE="$(zabbix_get_var PidFile)" >[ -z "${PIDFILE}" ] && PIDFILE="/tmp/zabbix_agentd.pid" > >start() { > ebegin "Starting Zabbix agent" > local dir="$(dirname ${PIDFILE})" > if [ ! -d "${dir}" ]; then > einfo " Creating ${dir}" > mkdir -p "${dir}" > chown zabbix "${dir}" > fi > if [ -f "${PIDFILE}" ]; then > einfo " Removing stale pidfile ${PIDFILE}" > rm -f "${PIDFILE}" 1>/dev/null > fi > start-stop-daemon --start --user zabbix --group zabbix --pidfile ${PIDFILE} --exec /usr/sbin/zabbix_agentd > eend $? >} > >stop() { > ebegin "Stopping Zabbix agent" > start-stop-daemon --stop --pidfile ${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 426818
:
319184
| 319422