OpenPKG CVS Repository http://cvs.openpkg.org/ ____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall Root: /e/openpkg/cvs Email: [EMAIL PROTECTED] Module: openpkg-src openpkg-web Date: 07-Oct-2003 10:29:29 Branch: HEAD Handle: 2003100709292702 Modified files: openpkg-src/xinetd xinetd.spec openpkg-web news.txt Log: restart after upgrade and stop on erase, too. Summary: Revision Changes Path 1.2 +13 -0 openpkg-src/xinetd/xinetd.spec 1.6894 +1 -0 openpkg-web/news.txt ____________________________________________________________________________ patch -p0 <<'@@ .' Index: openpkg-src/xinetd/xinetd.spec ============================================================================ $ cvs diff -u -r1.1 -r1.2 xinetd.spec --- openpkg-src/xinetd/xinetd.spec 7 Oct 2003 08:26:53 -0000 1.1 +++ openpkg-src/xinetd/xinetd.spec 7 Oct 2003 08:29:29 -0000 1.2 @@ -115,3 +115,16 @@ %clean rm -rf $RPM_BUILD_ROOT +%post + # after upgrade, restart service + if [ $1 -eq 2 ]; then + %{l_rc} xinetd restart || true + fi + +%preun + # before erase, stop service and remove temporary files + if [ $1 -eq 0 ]; then + %{l_rc} xinetd stop >/dev/null 2>&1 || true + rm -f $RPM_INSTALL_PREFIX/var/xinetd/* >/dev/null 2>&1 || true + fi + @@ . patch -p0 <<'@@ .' Index: openpkg-web/news.txt ============================================================================ $ cvs diff -u -r1.6893 -r1.6894 news.txt --- openpkg-web/news.txt 7 Oct 2003 08:26:51 -0000 1.6893 +++ openpkg-web/news.txt 7 Oct 2003 08:29:27 -0000 1.6894 @@ -1,3 +1,4 @@ +07-Oct-2003: Upgraded package: P<xinetd-2.3.12-20031007> 07-Oct-2003: New package: P<xinetd-2.3.12-20031007> 07-Oct-2003: Upgraded package: P<rt-3.0.6-20031007> 07-Oct-2003: Upgraded package: P<perl-gd-20031007-20031007> @@ . ______________________________________________________________________ The OpenPKG Project www.openpkg.org CVS Repository Commit List [EMAIL PROTECTED]