[Mailman-Users] Starting mailman on reboot

Odhiambo Washington odhiambo at gmail.com
Thu Feb 28 03:05:16 EST 2019


On Wed, 27 Feb 2019 at 23:49, Mark Sapiro <mark at msapiro.net> wrote:

> On 2/27/19 12:21 PM, Odhiambo Washington wrote:
>
> > Not sure what is going on ...
> >
> > root at lists:/home/wash# ps ax | grep mailman
> >  2422 ?        Ss     0:00 /usr/bin/python
> > /usr/local/mailman/bin/mailmanctl -s -q start
> >  2423 ?        S      0:05 /usr/bin/python2.7
> > /usr/local/mailman/bin/qrunner --runner=ArchRunner:0:1 -s
> >  2424 ?        S      0:05 /usr/bin/python2.7
> > /usr/local/mailman/bin/qrunner --runner=BounceRunner:0:1 -s
> >  2425 ?        S      0:04 /usr/bin/python2.7
> > /usr/local/mailman/bin/qrunner --runner=CommandRunner:0:1 -s
> >  2426 ?        S      0:05 /usr/bin/python2.7
> > /usr/local/mailman/bin/qrunner --runner=IncomingRunner:0:1 -s
> >  2427 ?        S      0:04 /usr/bin/python2.7
> > /usr/local/mailman/bin/qrunner --runner=NewsRunner:0:1 -s
> >  2428 ?        S      0:07 /usr/bin/python2.7
> > /usr/local/mailman/bin/qrunner --runner=OutgoingRunner:0:1 -s
> >  2429 ?        S      0:07 /usr/bin/python2.7
> > /usr/local/mailman/bin/qrunner --runner=VirginRunner:0:1 -s
> >  2430 ?        S      0:00 /usr/bin/python2.7
> > /usr/local/mailman/bin/qrunner --runner=RetryRunner:0:1 -s
> > 23841 pts/0    S+     0:00 grep --color=auto mailman
>
>
> At this point, Mailman is running. How did id start? Did you start it
> manually or did is start at boot?
>

Manually. I had listed the command lines on top of this output to show what
was going on.



> > root at lists:/home/wash# /etc/init.d/mailman stop
> > root at lists:/home/wash# ps ax | grep mailman
> > 23845 pts/0    S+     0:00 grep --color=auto mailman
>
>
> So now Mailmnan isn't running.
>

Because I have stopped it - manually. See the command above the 'ps ax'.



>
>
> > root at lists:/home/wash# systemctl status mailman
>
> irrelevant.
>

Of course I was asked (or so I just included it) what output that would
show.


>
>
> > root at lists:/home/wash# systemctl start mailman
> > root at lists:/home/wash# ps ax | grep mailman
> > 23884 ?        Ss     0:00 /usr/bin/python
> > /usr/local/mailman/bin/mailmanctl -s -q start
> > 23885 ?        S      0:00 /usr/bin/python2.7
> > /usr/local/mailman/bin/qrunner --runner=ArchRunner:0:1 -s
> > 23886 ?        S      0:00 /usr/bin/python2.7
> > /usr/local/mailman/bin/qrunner --runner=BounceRunner:0:1 -s
> > 23887 ?        S      0:00 /usr/bin/python2.7
> > /usr/local/mailman/bin/qrunner --runner=CommandRunner:0:1 -s
> > 23888 ?        S      0:00 /usr/bin/python2.7
> > /usr/local/mailman/bin/qrunner --runner=IncomingRunner:0:1 -s
> > 23889 ?        S      0:00 /usr/bin/python2.7
> > /usr/local/mailman/bin/qrunner --runner=NewsRunner:0:1 -s
> > 23890 ?        S      0:00 /usr/bin/python2.7
> > /usr/local/mailman/bin/qrunner --runner=OutgoingRunner:0:1 -s
> > 23891 ?        S      0:00 /usr/bin/python2.7
> > /usr/local/mailman/bin/qrunner --runner=VirginRunner:0:1 -s
> > 23892 ?        S      0:00 /usr/bin/python2.7
> > /usr/local/mailman/bin/qrunner --runner=RetryRunner:0:1 -s
> > 23896 pts/0    S+     0:00 grep --color=auto mailman
> >
>
>
> And now you start Mailman and it's running.
>

Yes!



>
> So the question is does it start on a reboot?


True.



> If not, try
>
> systemctl enable mailman
>
> to see if that fixes it.
>


It doesn't.

I have even done:
systemctl disable mailman
systemctl enable mailman


root at lists:/home/wash# shutdown -r now <-------------------------- Here I
have rebooted
login as: wash
<-------------------------- I now login after reboot
wash at lists.my.co.ke's password:
Welcome to Ubuntu 18.04.2 LTS (GNU/Linux 4.15.0-45-generic x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

 System information disabled due to load higher than 1.0

 * 'snap info' now shows the freshness of each channel.
   Try 'snap info microk8s' for all the latest goodness.


 * Canonical Livepatch is available for installation.
   - Reduce system reboots and improve kernel security. Activate at:
     https://ubuntu.com/livepatch

4 packages can be updated.
2 updates are security updates.


Last login: Thu Feb 28 10:46:03 2019 from 41.215.134.216
wash at lists:~$ ps ax | grep mailman  <--------------------------------
checking whether mailman started on reboot
 3438 pts/0    S+     0:00 grep --color=auto mailman <------------- It did
not...
wash at lists:~$ sudo su <---------------------------------------------------
I now login as root
[sudo] password for wash:
root at lists:/home/wash# systemctl start mailman <----------------- I
manually start mailman
root at lists:/home/wash# ps ax | grep mailman     <----------------- Checking
whether it's really started and yes, it is.
 3489 ?        Ss     0:00 /usr/bin/python
/usr/local/mailman/bin/mailmanctl -s -q start
 3490 ?        S      0:00 /usr/bin/python2.7
/usr/local/mailman/bin/qrunner --runner=ArchRunner:0:1 -s
 3491 ?        S      0:00 /usr/bin/python2.7
/usr/local/mailman/bin/qrunner --runner=BounceRunner:0:1 -s
 3492 ?        S      0:00 /usr/bin/python2.7
/usr/local/mailman/bin/qrunner --runner=CommandRunner:0:1 -s
 3493 ?        S      0:00 /usr/bin/python2.7
/usr/local/mailman/bin/qrunner --runner=IncomingRunner:0:1 -s
 3494 ?        S      0:00 /usr/bin/python2.7
/usr/local/mailman/bin/qrunner --runner=NewsRunner:0:1 -s
 3495 ?        S      0:00 /usr/bin/python2.7
/usr/local/mailman/bin/qrunner --runner=OutgoingRunner:0:1 -s
 3496 ?        S      0:00 /usr/bin/python2.7
/usr/local/mailman/bin/qrunner --runner=VirginRunner:0:1 -s
 3497 ?        S      0:00 /usr/bin/python2.7
/usr/local/mailman/bin/qrunner --runner=RetryRunner:0:1 -s
 3505 pts/0    S+     0:00 grep --color=auto mailman
root at lists:/home/wash#

So what stops it from starting automatically on reboot is what beats me!



-- 
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
"Oh, the cruft.", grep ^[^#] :-)


More information about the Mailman-Users mailing list