mailman/rc.mailman

Sun, 02 Sep 2012 18:18:43 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sun, 02 Sep 2012 18:18:43 +0200
changeset 659
79e32993cb4d
parent 9
871621b80702
permissions
-rw-r--r--

Introduce new version of tcpdump, reorder taglib and cryptbreaker to
the end because they fail to build on Linux, and correct flawed URLs
probably copied from the doxygen build entry.

michael@7 1 #!@l_prefix@/bin/openpkg rc
michael@7 2 ##
michael@7 3 ## rc.mailman -- Run-Commands
michael@7 4 ##
michael@7 5
michael@7 6 %config
michael@7 7 mailman_enable="$openpkg_rc_def"
michael@7 8
michael@7 9 %common
michael@7 10 mailman_ctl="@l_prefix@/libexec/mailman/bin/mailmanctl"
michael@8 11 qrunner_pidfile="@l_prefix@/var/mailman/data/master-qrunner.pid"
michael@8 12 qrunner_signal () {
michael@8 13 [ -f $qrunner_pidfile ] && kill -$1 `cat $qrunner_pidfile`
michael@8 14 }
michael@7 15
michael@7 16 %status -u @l_susr@ -o
michael@7 17 mailman_usable="unknown"
michael@7 18 mailman_active="no"
michael@7 19 rcService mailman enable yes && \
michael@8 20 qrunner_signal 0 && mailman_active="yes"
michael@7 21 echo "mailman_enable=\"$mailman_enable\""
michael@7 22 echo "mailman_usable=\"$mailman_usable\""
michael@7 23 echo "mailman_active=\"$mailman_active\""
michael@7 24
michael@7 25 %start -u @l_susr@
michael@7 26 rcService mailman enable yes || exit 0
michael@7 27 rcService mailman active yes && exit 0
michael@7 28 @l_prefix@/bin/python ${mailman_ctl} -s -q start
michael@7 29
michael@7 30 %stop -u @l_susr@
michael@7 31 rcService mailman enable yes || exit 0
michael@7 32 rcService mailman active no && exit 0
michael@7 33 @l_prefix@/bin/python ${mailman_ctl} -q stop
michael@7 34 sleep 2
michael@7 35
michael@7 36 %restart -u @l_susr@
michael@7 37 rcService mailman enable yes || exit 0
michael@7 38 rcService mailman active no && exit 0
michael@7 39 @l_prefix@/bin/python ${mailman_ctl} -q restart
michael@7 40 sleep 2
michael@7 41
michael@10 42 %quarterly -u @l_susr@
michael@7 43 rcService mailman enable yes || exit 0
michael@7 44 @l_prefix@/bin/python -S @l_prefix@/libexec/mailman/cron/gate_news
michael@7 45
michael@9 46 %daily -u @l_nusr@
michael@7 47 rcService mailman enable yes || exit 0
michael@7 48 @l_prefix@/bin/python -S @l_prefix@/libexec/mailman/cron/checkdbs
michael@7 49 @l_prefix@/bin/python -S @l_prefix@/libexec/mailman/cron/disabled
michael@7 50 @l_prefix@/bin/python -S @l_prefix@/libexec/mailman/cron/senddigests
michael@7 51 @l_prefix@/bin/python -S @l_prefix@/libexec/mailman/cron/nightly_gzip
michael@7 52
michael@10 53 %monthly -u @l_susr@
michael@7 54 rcService mailman enable yes || exit 0
michael@7 55 @l_prefix@/bin/python -S @l_prefix@/libexec/mailman/cron/mailpasswds
michael@7 56

mercurial