Improve runtime flexibility by observing $postfix_mailgraph_flags.

Thu, 23 Apr 2009 15:21:41 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 23 Apr 2009 15:21:41 +0200
changeset 193
9f27b979db4d
parent 192
62106debeb75
child 194
42dc0386ad57

Improve runtime flexibility by observing $postfix_mailgraph_flags.

postfix-mailgraph/postfix-mailgraph.spec file | annotate | diff | comparison | revisions
postfix-mailgraph/rc.postfix-mailgraph file | annotate | diff | comparison | revisions
     1.1 --- a/postfix-mailgraph/postfix-mailgraph.spec	Thu Apr 23 15:20:21 2009 +0200
     1.2 +++ b/postfix-mailgraph/postfix-mailgraph.spec	Thu Apr 23 15:21:41 2009 +0200
     1.3 @@ -32,7 +32,7 @@
     1.4  Group:        Mail
     1.5  License:      GPL
     1.6  Version:      1.14
     1.7 -Release:      20090416
     1.8 +Release:      20090418
     1.9  
    1.10  #   list of sources
    1.11  Source0:      http://mailgraph.schweikert.ch/pub/mailgraph-%{version}.tar.gz
     2.1 --- a/postfix-mailgraph/rc.postfix-mailgraph	Thu Apr 23 15:20:21 2009 +0200
     2.2 +++ b/postfix-mailgraph/rc.postfix-mailgraph	Thu Apr 23 15:21:41 2009 +0200
     2.3 @@ -5,6 +5,7 @@
     2.4  
     2.5  %config
     2.6      postfix_mailgraph_enable="$openpkg_rc_def"
     2.7 +    postfix_mailgraph_flags=""
     2.8  
     2.9  %common
    2.10      postfix_mailgraph_pidfile="@l_prefix@/var/postfix-mailgraph/run/mailgraph.pid"
    2.11 @@ -25,7 +26,7 @@
    2.12  %start -u @l_susr@
    2.13      rcService postfix-mailgraph enable yes || exit 0
    2.14      rcService postfix-mailgraph active yes && exit 0
    2.15 -    @l_prefix@/sbin/mailgraph --daemon
    2.16 +    @l_prefix@/sbin/mailgraph --daemon ${postfix_mailgraph_flags}
    2.17  
    2.18  %stop -u @l_susr@
    2.19      rcService postfix-mailgraph enable yes || exit 0
    2.20 @@ -35,7 +36,7 @@
    2.21  %restart -u @l_susr@
    2.22      rcService postfix-mailgraph enable yes || exit 0
    2.23      rcService postfix-mailgraph active no  && exit 0
    2.24 -    postfix_mailgraph_signal TERM
    2.25 +    rc postfix-mailgraph stop
    2.26      sleep 2
    2.27 -    @l_prefix@/sbin/mailgraph --daemon
    2.28 +    rc postfix-mailgraph start
    2.29  

mercurial