lab
lab copied to clipboard
[mailman3] and server restart
I am having problems with mailman3 when the server is rebootet. Looks like lock files in /home/USER/var/locks/
are not removed properly so mailman wont start correctly. I already have script running:
#!/bin/bash
uptime=$(awk '{print $1}' /proc/uptime)
if [[ ${uptime%%.*} -lt 100 ]]; then
rm -fr /home/akslists/var/locks/*
echo "uptime was ${uptime}" | mail -s "mailman3 rebootet" -S sendcharsets=utf-8 -E [email protected]
fi
that is called by cron minutely. Unfortunately that did not work tonight out of unknown reasons, because I had a nonworking mail address entered here I don't even know if it was started..
Does anybody else encounter this problem with mailman3 on a rebooting server? Then we should address this problem in the guide.