fix: postsrsd restart loop#3160
Conversation
|
I had really hoped not to see the return of wrappers 🤢 but it may currently be our only option.. |
|
Yes, unless someone comes up with a proper solution to run in foreground, this is the only way. |
georglauterbach
left a comment
There was a problem hiding this comment.
@polarathene merge this when you're fine with the changes as well :)
|
I will review in approx 12 hours. I found out why I could not reproduce the problem on my system... My current install has a different It appeared like |
|
@polarathene I think this PR as absolutely fine to merge even without your review, so if you want to save some time, let us know :) |
|
Sorry, went on a bit of a detour, I'll get back to this today 😅 |
Tada 🎉 #3128 (comment) There isn't any tests in place that actually verify postsrsd is working, only config matches expectations, but I'm pretty sure that's working properly now. What would you like to use? |
| stdout_logfile=/var/log/supervisor/%(program_name)s.log | ||
| stderr_logfile=/var/log/supervisor/%(program_name)s.log | ||
| command=/etc/init.d/postsrsd start | ||
| command=/bin/bash -l -c /usr/local/bin/postsrsd.sh |
There was a problem hiding this comment.
| command=/bin/bash -l -c /usr/local/bin/postsrsd.sh | |
| command=/bin/bash -c 'env $(grep -vE "^(#.*|\s*)$" /etc/default/postsrsd) postsrsd -e -p /var/run/postsrsd.pid' |
Definitely your solution 🎉🚀 |
|
I can confirm this works 🚀 I noticed this difference between the old wrapper and your new foreground solution: Old:
New:
Can you confirm, that this does not introduce any regressions due to missing parameters? Are these all either default values or defined in |
You only need to provide the domain and secret I think to run the command, the defaults are shown with the I provided captured snippets and relevant details for reference a while ago. There's possibly something missing, I need to sleep but can double check tomorrow to confirm if parity is kept 👍 That said we may want to opt-out of the chroot (along with Dovecot) for v12? |
👍
I see no problem with that. But let's do it separated from this PR. |
|
Yep all looks good 👍 (except we would now run in foreground instead of
I referenced the
💯 |
Description
Fixes #3128 (comment)
Can be tested with:
Type of change
Checklist:
docs/)