1 |
On Thu, 21 May 2020 06:44:35 +0200, Andreas Fink wrote: |
2 |
|
3 |
> recently emerge started to get stuck after an upgrade of dovecot, and |
4 |
> it is somehow related to my /etc/portage/bashrc, which has the |
5 |
> following content: function post_pkg_postinst() { |
6 |
> if test "$CATEGORY/$PN" = "dev-db/mariadb"; then |
7 |
> /etc/init.d/mysql status && /etc/init.d/mysql restart |
8 |
> elif test "$CATEGORY/$PN" = "www-servers/apache"; then |
9 |
> /etc/init.d/apache2 status && /etc/init.d/apache2 restart |
10 |
> elif test "$CATEGORY/$PN" = "net-mail/dovecot"; then |
11 |
> /etc/init.d/dovecot status && /etc/init.d/dovecot restart |
12 |
> echo 'going to sleep' |
13 |
> sleep 5 |
14 |
> echo 'finished sleeping' |
15 |
> elif test "$CATEGORY/$PN" = "mail-mta/postfix"; then |
16 |
> /etc/init.d/postfix status && /etc/init.d/postfix restart |
17 |
> elif test "$CATEGORY/$PN" = "net-misc/openssh"; then |
18 |
> /etc/init.d/sshd status && /etc/init.d/sshd restart |
19 |
> fi |
20 |
> } |
21 |
> |
22 |
> |
23 |
> I restart dovecot after an upgrade, in the same way as I restart e.g. |
24 |
> postfix. However for dovecot emerge gets stuck and does not continue |
25 |
> and is sitting there quietly (killable only via `pkill -9 emerge`). |
26 |
|
27 |
I can confirm this. I tried your bashrc (nice idea by the way, I normally |
28 |
manually run needrestart after an update) and the dovecot install |
29 |
completed but then hung. The next step is to add set +x to bashrc to see |
30 |
where the hang occurs. |
31 |
|
32 |
|
33 |
-- |
34 |
Neil Bothwick |
35 |
|
36 |
Walking on water and writing software to specification is easy if they're |
37 |
frozen. |