Manually create the service after upgrades and downgrades

tags/wpkg-zabbix_agent-3.4.3-0.beta1 3.0.3_el5
Daniel Berteaud 8 years ago
parent 54e4862515
commit 34ed775c59
  1. 9
      packages/zabbix_agent.xml

@ -26,6 +26,15 @@
</upgrade>
<upgrade cmd='netsh advfirewall firewall del rule name="Zabbix Agent"' />
<upgrade include="install" />
<!-- Sometimes on upgrades, the service is not correctly created -->
<upgrade cmd='"%PROGRAMFILES%\Zabbix Agent\zabbix_agentd.exe" -c "%PROGRAMFILES%\Zabbix Agent\zabbix_agentd.conf" --install'>
<exit code="1" />
<exit code="0" />
</upgrade>
<upgrade cmd='%COMSPEC% /C sc start "Zabbix Agent"'>
<exit code="0" />
<exit code="1056" />
</upgrade>
<downgrade include="upgrade" />

Loading…
Cancel
Save