fi
ln -sf %{_sbindir}/zabbix_server-postgresql %{_sbindir}/zabbix_server || :
+%post server
+/sbin/chkconfig --add zabbix_server
+%service zabbix_server restart
+
%postun server
+if [ "$1" = "0" ]; then
+ %service -q zabbix_server stop
+ /sbin/chkconfig --del zabbix_server
+fi
if [ "$1" = "0" ]; then
if [ -L %{_sbindir}/zabbix_server ] ; then
rm -f %{_sbindir}/zabbix_server || :
%post proxy-sqlite3
ln -sf %{_sbindir}/zabbix_proxy-sqlite3 %{_sbindir}/zabbix_proxy || :
+%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
+
%files
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog README