Stop service before upgrades/downgrade/removal

tags/wpkg-zabbix_agent-3.4.3-0.beta1
Daniel Berteaud 9 years ago
parent 90c53e2840
commit edcf0afaf5
  1. 12
      packages/zabbix_agent.xml

@ -13,11 +13,23 @@
<install cmd='msiexec /qn /i "%MSI%" SERVER=%ZBX_SERVER_IP% RMTCMD=0' />
<install cmd='netsh advfirewall firewall add rule name="Zabbix Agent" dir=in action=allow protocol=TCP localport=10050 enable=yes remoteip=%ZBX_SERVER_IP%' />
<install cmd='%COMSPEC% /C sc start "Zabbix Agent"'>
<exit code="any" />
</install>
<upgrade cmd='%COMSPEC% /C sc stop "Zabbix Agent"'>
<exit code="any" />
</upgrade>
<upgrade include="install" />
<downgrade cmd='%COMSPEC% /C sc stop "Zabbix Agent"'>
<exit code="any" />
</downgrade>
<downgrade include="install" />
<remove cmd='%COMSPEC% /C sc stop "Zabbix Agent"'>
<exit code="any" />
</remove>
<remove cmd='%COMSPEC% /C msiexec /qn /norestart /x "%MSI%"' />
<remove cmd='netsh advfirewall firewall del rule name="Zabbix Agent"' />

Loading…
Cancel
Save