Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 99289 - zabbix-server-1.0 -- zabbix-suckerd init script fix
Summary: zabbix-server-1.0 -- zabbix-suckerd init script fix
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High normal
Assignee: Brian Jackson (RETIRED)
URL:
Whiteboard:
Keywords: Inclusion
Depends on:
Blocks:
 
Reported: 2005-07-16 22:37 UTC by James Austin
Modified: 2006-06-06 06:51 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description James Austin 2005-07-16 22:37:00 UTC
When stopping zabbix-suckerd the pid file is not killed and the daemon will not restart without rm-ing it. The init script has the wrong pid option to start-stop-daemon in the stop section.
--<snip>--
stop() {
        ebegin "Stopping Zabbix suckerd"
        start-stop-daemon  --stop --pid $PID
        eend
--<snip>--

should be:

--<snip>--
stop() {
        ebegin "Stopping Zabbix suckerd"
        start-stop-daemon  --stop --pidfile $PID
        eend
--<snip>--

reference: man start-stop-daemon
Comment 1 James Austin 2005-07-17 08:55:15 UTC
Looks like all of the zabbix ebuilds have the same problem.

Thanks, James
Comment 2 Marcelo Goes (RETIRED) gentoo-dev 2005-12-25 15:15:42 UTC
Hmmm, I don't know why this was assigned to netmon. metadata.xml says it belongs to iggy, no herd.

Oh, well. iggy: feel free to add netmon as a herd to zabbix.
Comment 3 Marcelo Goes (RETIRED) gentoo-dev 2006-01-26 17:08:45 UTC
English fixes for zabbix-server:

-       eerror "You can't use both database in zabbix. Select one database"
-       die "Set both database"
+       eerror "You cannot use both MySQL and PostgreSQL with Zabbix."
+       eerror "Please select only one database in your USE flags."
+       die "selected both databases"

-       eerror "Selected mysql or postgresql database"
-       die "No select database"
+       eerror "You need to select either MySQL or PostgreSQL"
+       eerror "for use with zabbix in your USE flags."
+       die "no database was selected"

-               einfo "You need configure mysql for zabbix."
-               einfo "For more info read Zabbix Manual (/usr/share/doc/${P}/Zabbix Manual.pdf)"
+               einfo "You need to configure MySQL for use with Zabbix."
+               einfo "For more information, read Zabbix's Manual."

-               einfo "You need configure postgresql for zabbix."
-               einfo "For more info read Zabbix Manual (/usr/share/doc/${P}/Zabbix Manual.pdf)"
+               einfo "You need to configure PostgreSQL for use with Zabbix."
+               einfo "For more information, read Zabbix's Manual."
Comment 4 Wolfram Schlich (RETIRED) gentoo-dev 2006-06-06 06:51:33 UTC
This is obsolete, =net-analyzer/zabbix-server-1.1 fixes this.