[Mailman-Developers] mailmanctl patch
John Read
john.read@newnet-marketing.de
Sun, 15 Jul 2001 16:20:15 +0200
This is a multi-part message in MIME format.
------=_NextPart_000_0000_01C10D4A.08148CB0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Hi,
after installing the new beta version I found that not having starting, and
stopping messages in the mailmanctl was confusing when it was included in
the Linux startup scripts. All other system services have a short message
stating what they doing during the boot phase.
I have included the start, restart, and stop messages into mailmanctl, and
included the changes in a short patch file. (Its only three lines of code so
dont get excited!!)
Otherwise the installation, and testing so far has been without any
problems. Great software.
--
John Read
NewNet Marketing
Tel: +49-8076-8879818
Fax: +49-8076-8879819
------=_NextPart_000_0000_01C10D4A.08148CB0
Content-Type: application/octet-stream;
name="mailmanctl.patch"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="mailmanctl.patch"
--- bin/mailmanctl.org Sun Jul 15 15:53:41 2001=0A=
+++ bin/mailmanctl Sun Jul 15 15:58:53 2001=0A=
@@ -133,11 +133,13 @@=0A=
# Sent the master qrunner process a SIGINT, which is equivalent =
to=0A=
# giving cron/qrunner a ctrl-c or KeyboardInterrupt. This will=0A=
# effectively shut everything down.=0A=
+ print 'Shutting down Mailman Qrunner'=0A=
kill_subrunners(signal.SIGINT)=0A=
elif command =3D=3D 'restart':=0A=
# Sent the master qrunner process a SIGHUP. This will cause the=0A=
# master qrunner to kill and restart all the worker qrunners, =
and to=0A=
# close and re-open its log files.=0A=
+ print 'Restarting Mailman Qrunner'=0A=
kill_subrunners(signal.SIGHUP)=0A=
else:=0A=
# Must be `start'=0A=
@@ -145,6 +147,7 @@=0A=
# Daemon process startup according to Stevens, Advanced =
Programming in=0A=
# the UNIX Environment, Chapter 13.=0A=
if os.fork():=0A=
+ print 'Starting Mailman Qrunner'=0A=
# parent=0A=
sys.exit(0)=0A=
# child=0A=
------=_NextPart_000_0000_01C10D4A.08148CB0--