OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Michael Schloh
Root: /e/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src openpkg-web Date: 20-Oct-2003 15:48:30
Branch: HEAD Handle: 2003102014482801
Modified files:
openpkg-src/dcron dcron.spec rc.dcron
openpkg-web news.txt
Log:
Implement #202, with exception to dcron's own lack of logging features
Summary:
Revision Changes Path
1.35 +17 -4 openpkg-src/dcron/dcron.spec
1.12 +9 -0 openpkg-src/dcron/rc.dcron
1.7085 +1 -0 openpkg-web/news.txt
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/dcron/dcron.spec
============================================================================
$ cvs diff -u -r1.34 -r1.35 dcron.spec
--- openpkg-src/dcron/dcron.spec 22 Jul 2003 08:10:44 -0000 1.34
+++ openpkg-src/dcron/dcron.spec 20 Oct 2003 13:48:29 -0000 1.35
@@ -37,7 +37,7 @@
Group: System
License: GPL
Version: %{V_major}.%{V_minor}
-Release: 20030722
+Release: 20031020
# list of sources
Source0: http://apollo.backplane.com/FreeSrc/dcron%{V_major}%{V_minor}.tgz
@@ -53,9 +53,9 @@
AutoReqProv: no
%description
- A multi-user cron written from scratch by the author, similar to vixie-cron
- but with significant differences. Attention paid less to feature creep and
- more to usability and reliability.
+ A multiuser cron written from scratch, dcron is follows concepts of
+ vixie-cron but has significant differences. Less attention is paid
+ to feature development in favor of usability and reliability.
%prep
%setup -q -n dcron
@@ -95,4 +95,17 @@
%clean
rm -rf $RPM_BUILD_ROOT
+
+%post
+ # after upgrade, restart service
+ [ $1 -eq 2 ] || exit 0
+ eval `%{l_rc} dcron status 2>/dev/null`
+ [ ".$dcron_active" = .yes ] && %{l_rc} dcron restart
+ exit 0
+
+%preun
+ # before erase, stop service
+ [ $1 -eq 0 ] || exit 0
+ %{l_rc} dcron stop 2>/dev/null
+ exit 0
@@ .
patch -p0 <<'@@ .'
Index: openpkg-src/dcron/rc.dcron
============================================================================
$ cvs diff -u -r1.11 -r1.12 rc.dcron
--- openpkg-src/dcron/rc.dcron 22 Jul 2003 08:10:44 -0000 1.11
+++ openpkg-src/dcron/rc.dcron 20 Oct 2003 13:48:29 -0000 1.12
@@ -23,10 +23,19 @@
%start -u @l_susr@
rcService dcron enable yes || exit 0
+ rcService dcron active yes && exit 0
@l_prefix@/sbin/crond
%stop -u @l_susr@
rcService dcron enable yes || exit 0
+ rcService dcron active no && exit 0
dcron_signal TERM
rm -f @l_prefix@/var/dcron/dcron.pid 2>/dev/null || true
+
+%restart -u @l_susr@
+ rcService dcron enable yes || exit 0
+ rcService dcron active no && exit 0
+ rc dcron stop
+ sleep 2
+ rc dcron start
@@ .
patch -p0 <<'@@ .'
Index: openpkg-web/news.txt
============================================================================
$ cvs diff -u -r1.7084 -r1.7085 news.txt
--- openpkg-web/news.txt 20 Oct 2003 12:48:08 -0000 1.7084
+++ openpkg-web/news.txt 20 Oct 2003 13:48:28 -0000 1.7085
@@ -1,3 +1,4 @@
+20-Oct-2003: Upgraded package: P<dcron-2.9-20031020>
20-Oct-2003: Upgraded package: P<fsl-1.3.0-20031020>
20-Oct-2003: Upgraded package: P<openpkg-20031020-20031020>
20-Oct-2003: Upgraded package: P<sendmail-8.12.9-1.3.2>
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [EMAIL PROTECTED]