You are not logged in.

#1 2009-11-20 15:27:05

nicebloom
Member
From: Berlin
Registered: 2009-02-28
Posts: 38
Website

[SOLVED]Prosody Installation

Hi my fav. Community, big_smile

I'm trying some Jabber Server right now and I'm stuck with prosody.
Some strange things happen, when I use the original ABS package.
yikes
When I try to restart It shows something like this:

:: Starting prosody daemon                                                                                                                               [BUSY]
Usage:
  kill pid ...              Send SIGTERM to every process listed.
  kill signal pid ...       Send a signal to every process listed.
  kill -s signal pid ...    Send a signal to every process listed.
  kill -l                   List all signal names.
  kill -L                   List all signal names in a nice table.
  kill -l signal            Convert between signal numbers and names.
                                                                                                                                                                       [FAIL]

I had tried to prevent the init script from saying things like that.:D
So I altered the init script.;)
I changed the function get_pid ()

before:

get_pid() {
    if [ -f $pid_file ]; then
        /bin/kill -0 $(cat $pid_file)
        if [ $? == 0 ]; then
            cat $pid_file
        fi
    fi
}

after:

get_pid() { 
    ps -fC lua | awk '/prosody/ {print $2}' 
}

This worked quite well. lol
Not at all but the "Usage" message disappeared.
Nevertheless I'm not able to start the server in any way.
The process is running but won't accept connections or things like this.
Someone had experience with this?
Any advice would be helpful...

BTW: Which Jabberserver are you using? cool

Cheers,
nIcE

Last edited by nicebloom (2009-11-25 20:03:32)


...:::h4cK:y0uR:d4y:::...
cool

Offline

#2 2009-11-20 16:00:55

tdy
Member
From: Sacremende
Registered: 2008-12-14
Posts: 440

Re: [SOLVED]Prosody Installation

nicebloom wrote:

This worked quite well. lol
Not at all but the "Usage" message disappeared.

hmm not positive what you meant by this.. are you saying the usage message disappeared but prosodyctl still doesn't start?  If the daemon still doesn't work, try using this for the get_pid() function:

get_pid() {
  pidof -o %PPID /usr/bin/prosodyctl
}

Last edited by tdy (2009-11-20 16:10:33)

Offline

#3 2009-11-20 16:29:03

nicebloom
Member
From: Berlin
Registered: 2009-02-28
Posts: 38
Website

Re: [SOLVED]Prosody Installation

tdy wrote:
nicebloom wrote:

This worked quite well. lol
Not at all but the "Usage" message disappeared.

hmm not positive what you meant by this.. are you saying the usage message disappeared but prosodyctl still doesn't start?

Yes this is what I wanted to say, nearly... tongue

Well it is running but you aren't able to connect.
Also prosodyctl is only for controlling the daemon (as far as I know ... wink) which is a lua application with name prosody.

We will see what the weekend will reveal... lol

Also you have to get the lua pid, because it is run as an lua app as mentioned before.

With the original init script it will start (despite it says "FAIL") and I'm even able to connect.
But things which aren't working:
- restarting
- stopping

Last edited by nicebloom (2009-11-20 16:37:33)


...:::h4cK:y0uR:d4y:::...
cool

Offline

#4 2009-11-24 02:25:51

dbb
Member
From: New York City
Registered: 2008-12-14
Posts: 31
Website

Re: [SOLVED]Prosody Installation

Hi nicebloom, I maintain the Prosody package for Arch. The first bit of output you posted indicates that for whatever reason the kill command received bad parameters, since it's a fairly simple command my guess is that for whatever reason the pid file existed but was empty causing the actual command to be executed to be:

/bin/kill -0

which would generate those usage messages. Could you check if this is the case? I'd like to know why the pid file would be empty.

Also as far as your connection issues, it's probably a configuration issue, if you post your config file I can take a look at it and figure out what's causing it.

Last edited by dbb (2009-11-24 02:26:25)

Offline

#5 2009-11-25 16:33:14

nicebloom
Member
From: Berlin
Registered: 2009-02-28
Posts: 38
Website

Re: [SOLVED]Prosody Installation

Everything seems to be good by now.
Had updated to the 0.6.1 and everything seems fine now.
Hadn't tested the PID thingy before the update, but now everything looks quiet well.

But thanks...

Cheers,

nIcE


...:::h4cK:y0uR:d4y:::...
cool

Offline

Board footer

Powered by FluxBB