# HG changeset patch # User Michael Schloh von Bennewitz # Date 1240492901 -7200 # Node ID 9f27b979db4d1049b6d44f3c5aeea34ac2c62a5d # Parent 62106debeb759baf066e6dbcc4da659aa5033ad8 Improve runtime flexibility by observing $postfix_mailgraph_flags. diff -r 62106debeb75 -r 9f27b979db4d postfix-mailgraph/postfix-mailgraph.spec --- a/postfix-mailgraph/postfix-mailgraph.spec Thu Apr 23 15:20:21 2009 +0200 +++ b/postfix-mailgraph/postfix-mailgraph.spec Thu Apr 23 15:21:41 2009 +0200 @@ -32,7 +32,7 @@ Group: Mail License: GPL Version: 1.14 -Release: 20090416 +Release: 20090418 # list of sources Source0: http://mailgraph.schweikert.ch/pub/mailgraph-%{version}.tar.gz diff -r 62106debeb75 -r 9f27b979db4d postfix-mailgraph/rc.postfix-mailgraph --- a/postfix-mailgraph/rc.postfix-mailgraph Thu Apr 23 15:20:21 2009 +0200 +++ b/postfix-mailgraph/rc.postfix-mailgraph Thu Apr 23 15:21:41 2009 +0200 @@ -5,6 +5,7 @@ %config postfix_mailgraph_enable="$openpkg_rc_def" + postfix_mailgraph_flags="" %common postfix_mailgraph_pidfile="@l_prefix@/var/postfix-mailgraph/run/mailgraph.pid" @@ -25,7 +26,7 @@ %start -u @l_susr@ rcService postfix-mailgraph enable yes || exit 0 rcService postfix-mailgraph active yes && exit 0 - @l_prefix@/sbin/mailgraph --daemon + @l_prefix@/sbin/mailgraph --daemon ${postfix_mailgraph_flags} %stop -u @l_susr@ rcService postfix-mailgraph enable yes || exit 0 @@ -35,7 +36,7 @@ %restart -u @l_susr@ rcService postfix-mailgraph enable yes || exit 0 rcService postfix-mailgraph active no && exit 0 - postfix_mailgraph_signal TERM + rc postfix-mailgraph stop sleep 2 - @l_prefix@/sbin/mailgraph --daemon + rc postfix-mailgraph start