OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Michael van Elst
Root: /e/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src openpkg-web Date: 21-Jul-2003 18:27:10
Branch: HEAD Handle: 2003072117270901
Modified files:
openpkg-src/postfix-mailgraph
postfix-mailgraph.spec rc.postfix-mailgraph
openpkg-web news.txt
Log:
%status and pidfile handling
Summary:
Revision Changes Path
1.9 +1 -1 openpkg-src/postfix-mailgraph/postfix-mailgraph.spec
1.7 +23 -4 openpkg-src/postfix-mailgraph/rc.postfix-mailgraph
1.5697 +1 -0 openpkg-web/news.txt
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/postfix-mailgraph/postfix-mailgraph.spec
============================================================================
$ cvs diff -u -r1.8 -r1.9 postfix-mailgraph.spec
--- openpkg-src/postfix-mailgraph/postfix-mailgraph.spec 19 Jul 2003 17:06:18
-0000 1.8
+++ openpkg-src/postfix-mailgraph/postfix-mailgraph.spec 21 Jul 2003 16:27:10
-0000 1.9
@@ -33,7 +33,7 @@
Group: Mail
License: GPL
Version: 1.4
-Release: 20030719
+Release: 20030721
# list of sources
Source0:
http://people.ee.ethz.ch/~dws/software/mailgraph/pub/mailgraph-%{version}.tar.gz
@@ .
patch -p0 <<'@@ .'
Index: openpkg-src/postfix-mailgraph/rc.postfix-mailgraph
============================================================================
$ cvs diff -u -r1.6 -r1.7 rc.postfix-mailgraph
--- openpkg-src/postfix-mailgraph/rc.postfix-mailgraph 19 Jul 2003 17:06:18
-0000 1.6
+++ openpkg-src/postfix-mailgraph/rc.postfix-mailgraph 21 Jul 2003 16:27:10
-0000 1.7
@@ -6,14 +6,33 @@
%config
postfix_mailgraph_enable="$openpkg_rc_def"
+%common
+ postfix_mailgraph_pidfile="@l_prefix@/var/postfix-mailgraph/run/mailgraph.pid"
+ postfix_mailgraph_signal () {
+ [ -f $postfix_mailgraph_pidfile ] \
+ && kill -$1 `cat $postfix_mailgraph_pidfile`
+ }
+
+%status -p 200 -u @l_susr@ -o
+ postfix_mailgraph_usable="unknown"
+ postfix_mailgraph_active="no"
+ rcService postfix_mailgraph enable yes && \
+ postfix_mailgraph_signal 0 && postfix_mailgraph_active="yes"
+ echo "postfix_mailgraph_enable=\"$postfix_mailgraph_enable\""
+ echo "postfix_mailgraph_usable=\"$postfix_mailgraph_usable\""
+ echo "postfix_mailgraph_active=\"$postfix_mailgraph_active\""
+
%start -p 100 -u @l_susr@
rcService postfix_mailgraph enable yes || exit 0
@l_prefix@/sbin/mailgraph --daemon
%stop -p 200 -u @l_susr@
rcService postfix_mailgraph enable yes || exit 0
- if [ -f @l_prefix@/var/postfix-mailgraph/run/mailgraph.pid ]; then
- kill -TERM `cat @l_prefix@/var/postfix-mailgraph/run/mailgraph.pid`
>/dev/null 2>&1 || true
- sleep 2
- fi
+ postfix_mailgraph_signal TERM
+
+%restart -p 200 -u @l_susr@
+ rcService postfix_mailgraph enable yes || exit 0
+ postfix_mailgraph_signal TERM
+ sleep 2
+ @l_prefix@/sbin/mailgraph --daemon
@@ .
patch -p0 <<'@@ .'
Index: openpkg-web/news.txt
============================================================================
$ cvs diff -u -r1.5696 -r1.5697 news.txt
--- openpkg-web/news.txt 21 Jul 2003 15:53:48 -0000 1.5696
+++ openpkg-web/news.txt 21 Jul 2003 16:27:09 -0000 1.5697
@@ -1,3 +1,4 @@
+21-Jul-2003: Upgraded package: P<postfix-mailgraph-1.4-20030721>
21-Jul-2003: Upgraded package: P<lmtp2nntp-1.2.0-20030721>
21-Jul-2003: Upgraded package: P<mico-2.3.10-20030721>
21-Jul-2003: Upgraded package: P<dcron-2.9-20030721>
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [EMAIL PROTECTED]