+%post proxy
+/sbin/chkconfig --add zabbix_server
+%service zabbix_server restart
+
+%postun proxy
+if [ "$1" = "0" ]; then
+ %service -q zabbix_proxy stop
+ /sbin/chkconfig --del zabbix_proxy
+fi
+if [ "$1" = "0" ]; then
+ if [ -L %{_sbindir}/zabbix_proxy ] ; then
+ rm -f %{_sbindir}/zabbix_proxy || :
+ fi
+fi
+