:: [devuan-dev] bug#721: Jabberd2 star…
Startseite
Nachricht löschen
Nachricht beantworten
Autor: Mark Hindley
Datum:  
To: 721
CC: Leonid
Alte Treads: [devuan-dev] bug#721: Jabberd2 start failture on devuan
Betreff: [devuan-dev] bug#721: Jabberd2 start failture on devuan
Control: tags -1 patch

On Wed, Nov 02, 2022 at 09:24:03AM +0000, Mark Hindley wrote:
>  - What group is jabber trying to run as? It looks[2] as if it should be
>    jabber. Does the group exist? It should be created in the preinst[3]


I have had a quick look at this and the USER and GROUP environment variables
need to be exported so that they are passed to the scripts in
/etc/jabberd2/component.d.

USER is already an exported variable, so actually works either way, but GROUP
isn't so fails.

Try this.

diff -u /home/mark/Downloads/jabberd2.init /home/mark/Downloads/jabberd2.init.new
--- /home/mark/Downloads/jabberd2.init    2023-01-11 19:36:24.104716244 +0000
+++ /home/mark/Downloads/jabberd2.init.new    2023-01-11 19:37:12.319574513 +0000
@@ -14,8 +14,8 @@
 set -e


# user and group
-USER=jabber
-GROUP=jabber
+export USER=jabber
+export GROUP=jabber
test -f /etc/default/jabberd2 && . /etc/default/jabberd2

COMPONENTDPATH=/etc/jabberd2/component.d

Diff finished. Wed Jan 11 19:38:28 2023