[Spce-user] Prosody init script and lsb

Jon Bonilla (Manwe) manwe at sipdoc.net
Tue Apr 7 18:30:01 EDT 2015


El Tue, 7 Apr 2015 18:01:33 +0100
Barry Flanagan <barry at flanagan.ie> escribió:

> On 7 Apr 2015 5:38 pm, "Jon Bonilla (Manwe)" <manwe at sipdoc.net> wrote:
> >
> > Hi Guys
> >
> >
> > Trying to check the status of the xmpp server I noticed that prosody does
> not
> > accept the status command:
> >
> > root at spce:~# service prosody status
> > [info] Usage: /etc/init.d/prosody {start|stop|restart|reload}.
> > root at spce:~# echo $?
> > 1
> 
> Hi Jon,
> 
> Would prosodyctl status work for you?
> 
>

Hi Barry

Well, it can be scriptable but the return codes are not lsb compliant neither
and if you're looking for integration with resource management systems you'd
better use lsb scripts. I would rather patch the init script to add the status
option and return the proper codes.

thanks,

Jon

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: Firma digital OpenPGP
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20150408/f813e9a3/attachment-0001.sig>


More information about the Spce-user mailing list