%post
#%systemd_post %{name}-slave.service %{name}-master.service
/sbin/chkconfig --add %{name}-slave
/sbin/chkconfig --add %{name}-master
/sbin/service %{name}-slave start
/sbin/service %{name}-master start
/sbin/ldconfig
%preun
#%systemd_preun %{name}-slave.service %{name}-master.service
/sbin/service %{name}-slave stop
/sbin/service %{name}-master stop
/sbin/chkconfig --del %{name}-slave
/sbin/chkconfig --del %{name}-master
%postun
#%systemd_postun_with_restart %{name}-slave.service %{name}-master.service
/sbin/service %{name}-slave condrestart
/sbin/service %{name}-master condrestart
/sbin/ldconfig