Devrim GUNDUZ devrim at lists.slony.info
Mon May 28 07:05:05 PDT 2007
Update of /home/cvsd/slony1/slony1-engine
In directory main.slony.info:/tmp/cvs-serv16266

Modified Files:
      Tag: REL_1_2_STABLE
	postgresql-slony1-engine.spec.in 
Log Message:
Since we now have a init script, let's install it with RPM.



Index: postgresql-slony1-engine.spec.in
===================================================================
RCS file: /home/cvsd/slony1/slony1-engine/postgresql-slony1-engine.spec.in,v
retrieving revision 1.31.2.10
retrieving revision 1.31.2.11
diff -C2 -d -r1.31.2.10 -r1.31.2.11
*** postgresql-slony1-engine.spec.in	28 May 2007 13:47:58 -0000	1.31.2.10
--- postgresql-slony1-engine.spec.in	28 May 2007 14:05:03 -0000	1.31.2.11
***************
*** 89,92 ****
--- 89,99 ----
  install -m 0644 share/slon.conf-sample %{buildroot}%{_sysconfdir}/slon.conf
  
+ if [ -d /etc/rc.d/init.d ]
+ then
+ 	install -d %{buildroot}/etc/rc.d/init.d
+ 	install -m 755 redhat/slon.init %{buildroot}/etc/rc.d/init.d/slon
+ fi
+ 
+ 
  %if %perltools
  cd tools
***************
*** 107,110 ****
--- 114,132 ----
  rm -rf %{buildroot}
  
+ %post
+ chkconfig --add pypgreplicate
+ 
+ %preun
+ if [ $1 = 0 ] ; then
+ 	/sbin/service slon condstop >/dev/null 2>&1
+ 	chkconfig --del slon
+ fi
+ 
+ %postun
+ if [ $1 -ge 1 ]; then
+ 	/sbin/service slon condrestart >/dev/null 2>&1
+ fi
+ 
+ 
  %files
  %defattr(-,root,root,-)
***************
*** 118,121 ****
--- 140,144 ----
  %{_libdir}/pgsql/slon-tools.pm
  %config(noreplace) %{_sysconfdir}/slon_tools.conf
+ %{_sysconfdir}/rc.d/init.d/slon
  %endif
  



More information about the Slony1-commit mailing list