Correct active configuration testing to allow service to start.

Wed, 17 Dec 2008 15:03:09 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 17 Dec 2008 15:03:09 +0100
changeset 8
012d4ffc4892
parent 7
5443cb9b550a
child 9
871621b80702

Correct active configuration testing to allow service to start.

mailman/mailman.spec file | annotate | diff | comparison | revisions
mailman/rc.mailman file | annotate | diff | comparison | revisions
     1.1 --- a/mailman/mailman.spec	Wed Dec 17 15:02:08 2008 +0100
     1.2 +++ b/mailman/mailman.spec	Wed Dec 17 15:03:09 2008 +0100
     1.3 @@ -21,8 +21,6 @@
     1.4  ##  SUCH DAMAGE.
     1.5  ##
     1.6  
     1.7 -#   FIXME: rse: is this packaging complete?
     1.8 -
     1.9  #   package information
    1.10  Name:         mailman
    1.11  Summary:      Mailing List Management System
    1.12 @@ -34,7 +32,7 @@
    1.13  Group:        Mail
    1.14  License:      GPL
    1.15  Version:      2.1.11
    1.16 -Release:      20080701
    1.17 +Release:      20081218
    1.18  
    1.19  #   list of sources
    1.20  Source0:      http://switch.dl.sourceforge.net/mailman/mailman-%{version}.tgz
     2.1 --- a/mailman/rc.mailman	Wed Dec 17 15:02:08 2008 +0100
     2.2 +++ b/mailman/rc.mailman	Wed Dec 17 15:03:09 2008 +0100
     2.3 @@ -8,13 +8,16 @@
     2.4  
     2.5  %common
     2.6      mailman_ctl="@l_prefix@/libexec/mailman/bin/mailmanctl"
     2.7 +    qrunner_pidfile="@l_prefix@/var/mailman/data/master-qrunner.pid"
     2.8 +    qrunner_signal () {
     2.9 +        [ -f $qrunner_pidfile ] && kill -$1 `cat $qrunner_pidfile`
    2.10 +    }
    2.11  
    2.12  %status -u @l_susr@ -o
    2.13      mailman_usable="unknown"
    2.14      mailman_active="no"
    2.15      rcService mailman enable yes && \
    2.16 -        @l_prefix@/bin/python ${mailman_ctl} -q FIXME && \
    2.17 -        mailman_active="yes"
    2.18 +        qrunner_signal 0 && mailman_active="yes"
    2.19      echo "mailman_enable=\"$mailman_enable\""
    2.20      echo "mailman_usable=\"$mailman_usable\""
    2.21      echo "mailman_active=\"$mailman_active\""

mercurial