Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 460562 - net-analyzer/zabbix-2.0.5 (and 2.0.4-r1 too) init.d script for zabbix_proxy fails to set the correct conf file path
Summary: net-analyzer/zabbix-2.0.5 (and 2.0.4-r1 too) init.d script for zabbix_proxy f...
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Matthew Marlowe (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-06 18:03 UTC by Rodrigo Severo
Modified: 2013-07-19 04:28 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
init conifguration patch (zabbix-2.0.5.ebuild.patch,351 bytes, patch)
2013-04-29 19:54 UTC, Alice Ferrazzi
Details | Diff
new zabbix-proxy init file files/2.0/init.d/ (zabbix-proxy,594 bytes, text/plain)
2013-04-29 19:55 UTC, Alice Ferrazzi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rodrigo Severo 2013-03-06 18:03:36 UTC
zabbix_proxy 2.05 (and 2.0.4-r1) init.d for zabbix_proxy fails top set the correct path to it's conf file.

zabbix_agentd init.d script sets the path to the config file.

Adding

 -- -c /etc/zabbix/zabbix_proxy.conf

at the end of the start line in the init.d script solves this problem.
Comment 1 Matthew Marlowe (RETIRED) gentoo-dev 2013-04-12 04:43:28 UTC
I'll look at this when making the next bump.
Comment 2 Alice Ferrazzi Gentoo Infrastructure gentoo-dev 2013-04-29 19:53:07 UTC
reproduced and same result also for me:

actual result:
gentoo-test zabbix # /etc/init.d/zabbix-proxy start                                       
 * Caching service dependencies ... [ ok ]
 * Starting Zabbix proxy ...
zabbix_proxy [16051]: cannot open config file [/etc/zabbix_proxy.conf]: [2] No such file or directory
 * start-stop-daemon: failed to start `/usr/sbin/zabbix_proxy' [ !! ]
 * ERROR: zabbix-proxy failed to start

Expected Results:
gentoo-test zabbix # /etc/init.d/zabbix-proxy start                                       
 * Starting Zabbix proxy ... [ ok ]
Comment 3 Alice Ferrazzi Gentoo Infrastructure gentoo-dev 2013-04-29 19:54:24 UTC
Created attachment 346924 [details, diff]
init conifguration patch
Comment 4 Alice Ferrazzi Gentoo Infrastructure gentoo-dev 2013-04-29 19:55:27 UTC
Created attachment 346926 [details]
new zabbix-proxy init file files/2.0/init.d/
Comment 5 Matthew Marlowe (RETIRED) gentoo-dev 2013-05-06 22:28:12 UTC
Fixed in zabbix-2.0.6-r2 which was just committed to cvs.
Comment 6 Alice Ferrazzi Gentoo Infrastructure gentoo-dev 2013-05-07 09:10:21 UTC
i have tested on 2.0.6-r3 and the  -- -c /etc/zabbix/zabbix_proxy.conf is been added and zabbix-proxy from init.d now starts correctly

however
the ebegin description in the init.d is wrong
please change:
        ebegin "Starting Zabbix agent"
        ebegin "Stopping Zabbix agent"
with:
        ebegin "Starting Zabbix proxy"
        ebegin "Stopping Zabbix proxy"
Comment 7 Matthew Marlowe (RETIRED) gentoo-dev 2013-07-19 04:28:44 UTC
Fixed.