Public bug reported:
While the zabbix-agent successfully starts and stops, the script returns
a `1`. This prevents the package from being correctly removed or
upgraded, all of which require that stop return a 0.
## On Stop ##
rtconf@rts-wmububench-01:~$ sudo /etc/init.d/zabbix-agent stop; echo $?; ps
-ef|grep zabbix
1
rtconf 6693 1969 0 12:01 pts/2 00:00:00 grep --color=auto zabbix
## On Start ##
rtconf@rts-wmububench-01:~$ sudo /etc/init.d/zabbix-agent start; echo $?; ps
-ef|grep zabbix
1
zabbix 6701 1 0 12:01 ? 00:00:00 /usr/sbin/zabbix_agentd
zabbix 6702 6701 0 12:01 ? 00:00:00 /usr/sbin/zabbix_agentd
zabbix 6703 6701 0 12:01 ? 00:00:00 /usr/sbin/zabbix_agentd
zabbix 6704 6701 0 12:01 ? 00:00:00 /usr/sbin/zabbix_agentd
zabbix 6705 6701 0 12:01 ? 00:00:00 /usr/sbin/zabbix_agentd
zabbix 6706 6701 0 12:01 ? 00:00:00 /usr/sbin/zabbix_agentd
rtconf 6708 1969 0 12:01 pts/2 00:00:00 grep --color=auto zabbix
As we can see here, we are returning a 1, when obviously things are
working. Simply adding `true` at the end of the start/stop clauses fixes
this problem, but it is clearly an ugly hack that will hide real issues.
** Affects: zabbix (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1109077
Title:
Start/Stop script /etc/init.d/zabbix-agent returns 1 when should
return 0
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/zabbix/+bug/1109077/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs