Start/Stop script /etc/init.d/zabbix-agent returns 1 when should return 0
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
zabbix (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
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@
1
rtconf 6693 1969 0 12:01 pts/2 00:00:00 grep --color=auto zabbix
## On Start ##
rtconf@
1
zabbix 6701 1 0 12:01 ? 00:00:00 /usr/sbin/
zabbix 6702 6701 0 12:01 ? 00:00:00 /usr/sbin/
zabbix 6703 6701 0 12:01 ? 00:00:00 /usr/sbin/
zabbix 6704 6701 0 12:01 ? 00:00:00 /usr/sbin/
zabbix 6705 6701 0 12:01 ? 00:00:00 /usr/sbin/
zabbix 6706 6701 0 12:01 ? 00:00:00 /usr/sbin/
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.
Status changed to 'Confirmed' because the bug affects multiple users.