php IHDR w Q )Ba pHYs sRGB gAMA a IDATxMk\U s&uo,mD )Xw+e?tw.oWp;QHZnw`gaiJ9̟灙a=nl[ ʨ G;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ y H@E7j 1j+OFRg}ܫ;@Ea~ j`u'o> j- $_q?qS XzG'ay
files >> /proc/self/root/etc/rc5.d/ |
files >> //proc/self/root/etc/rc5.d/S98mailman |
#!/bin/sh # # mailman This shell script starts and stops GNU Mailman. # # Copyright (C) 2001-2003 by the Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # # Copy this file to /etc/init.d/ (or /etc/rc.d/init.d/ depending on # your system) and activate it as such: # # On Debian, type "update-rc.d mailman defaults" # On RedHat, and derivatives, install with "chkconfig --add mailman" # # chkconfig: - 98 12 # description: Mailman is the GNU Mailing List Manager, a program that \ # manages electronic mail discussion groups. For more \ # on GNU Mailman see http://www.list.org # processname: mailmanctl # config: /usr/lib/mailman/Mailman/mm_cfg.py # pidfile: /var/run/mailman/master-qrunner.pid ### BEGIN INIT INFO # Provides: mailman # Required-Start: $local_fs $remote_fs $network $named # Should-Start: httpd # Required-Stop: $local_fs $remote_fs $network # Default-Stop: 0 1 3 4 5 6 # Short-Description: start and stop Mailman # Description: Mailman is the GNU mailing list manager. ### END INIT INFO MAILMANHOME=/usr/lib/mailman MAILMANCTL=$MAILMANHOME/bin/mailmanctl # We used to install the mailman cron jobs when the mailman rpm was # installed, irrespective of whether mailman was actually being # run. Although the cron jobs didn't create any problems if someone # wasn't running mailman some users complained about the cron log file # filling up, resource usage, and power consumption since systems # wouldn't really idle. It really only makes sense to run the mailman # cron jobs if the mailman service is turned on and not just merely # having the rpm installed. This init.d script is an obvious place to # install or remove the cron jobs based on the service being enabled # or not. SRC_CRON_SCRIPT=$MAILMANHOME/cron/crontab.in DST_CRON_SCRIPT=/etc/cron.d/mailman function InstallCron() { install -m644 -o root -g root $SRC_CRON_SCRIPT $DST_CRON_SCRIPT } function RemoveCron() { cat > $DST_CRON_SCRIPT <<EOF # DO NOT EDIT THIS FILE! # # Contents of this file managed by /etc/init.d/mailman # Master copy is /usr/lib/mailman/cron/crontab.in # Consult that file for documentation EOF } # Source function library. . /etc/rc.d/init.d/functions RETVAL=0 prog="mailman" function start() { echo -n $"Starting $prog: " mailman-update-cfg daemon $MAILMANCTL -s -q start RETVAL=$? if [ $RETVAL -eq 0 ] then touch /var/lock/subsys/$prog InstallCron else RETVAL=6 fi echo return $RETVAL } function stop() { if [ -f /var/lock/subsys/$prog ] then echo -n $"Shutting down $prog: " mailman-update-cfg daemon $MAILMANCTL -q stop RETVAL=$? if [ $RETVAL -eq 0 ] then rm -f /var/lock/subsys/$prog RemoveCron fi echo else echo $"$prog already stopped." RETVAL=0 fi return $RETVAL } function restart() { stop start RETVAL=$? return $RETVAL } case "$1" in 'start') start RETVAL=$? ;; 'stop') stop RETVAL=$? ;; 'restart'|'force-reload') restart RETVAL=$? ;; 'condrestart'|'try-restart') $MAILMANCTL -q -u status retval=$? if [ $retval -eq 0 ] then restart RETVAL=$? fi ;; 'status') output=$($MAILMANCTL -u status) RETVAL=$? if [ $RETVAL -eq 3 -a -f /var/lock/subsys/$prog ] then echo $"$prog dead but subsys locked" RETVAL=2 else echo $output fi ;; *) echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status}" RETVAL=2 ;; esac exit $RETVALy~or5J={Eeu磝Qk ᯘG{?+]ן?wM3X^歌>{7پK>on\jy Rg/=fOroNVv~Y+ NGuÝHWyw[eQʨSb> >}Gmx[o[<{Ϯ_qFvM IENDB`