Re: [OpenSIPS-Users] init.d file?

2009-08-26 Thread Bogdan-Andrei Iancu
Hi Alex,

Typically the init file do check if the binary does exits -  something 
like : test -f $DAEMON || exit 0  

Check if the $DAEMON points to the proper binary.

Regards,
Bogdan

Alex G wrote:
> am sure i am running the start command correctly. all chmod 
> permissions are correct, default file is in etc/default, am sure the 
> daemon variable is pointing to the correct directory for opensips
>
> i am getting some ouput from the init script, just is not starting it
>
>
>
> On Wed, Aug 26, 2009 at 10:10 AM, Iñaki Baz Castillo  > wrote:
>
> 2009/8/26 Alex G  >:
> > There's no pid. Something is still missing in the init file. If
> I'm at
> > least getting output from the script, this means the daemon check is
> > succeeding.
>
> Ensure you run:
>
> /etc/init.d/openser start
>
>
>
> --
> Iñaki Baz Castillo
> mailto:i...@aliax.net>>
>
> ___
> Users mailing list
> Users@lists.opensips.org 
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
> 
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>   


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] init.d file?

2009-08-26 Thread Alex G
am sure i am running the start command correctly. all chmod permissions are
correct, default file is in etc/default, am sure the daemon variable is
pointing to the correct directory for opensips

i am getting some ouput from the init script, just is not starting it



On Wed, Aug 26, 2009 at 10:10 AM, Iñaki Baz Castillo  wrote:

> 2009/8/26 Alex G :
> > There's no pid. Something is still missing in the init file. If I'm at
> > least getting output from the script, this means the daemon check is
> > succeeding.
>
> Ensure you run:
>
> /etc/init.d/openser start
>
>
>
> --
> Iñaki Baz Castillo
> 
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] init.d file?

2009-08-26 Thread Iñaki Baz Castillo
2009/8/26 Alex G :
> There's no pid. Something is still missing in the init file. If I'm at
> least getting output from the script, this means the daemon check is
> succeeding.

Ensure you run:

/etc/init.d/openser start



-- 
Iñaki Baz Castillo


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] init.d file?

2009-08-26 Thread Alex G
There's no pid. Something is still missing in the init file. If I'm at
least getting output from the script, this means the daemon check is
succeeding.

On 8/26/09, Saúl Ibarra  wrote:
> Look at /var/run to see if you still have an opensips pid file,
> regardless it has been stopped.
>
> 2009/8/26, Alex G :
>> not using the dpkg because i have all my opensips servers built already.
>> for
>> the sake of using monit, i require an init.d file to be there to
>> start/stop
>> opensips.
>>
>> i've changed the pointer for DAEMON and added the default file. I'm
>> getting
>> "Starting opensips: opensips already running." but its obviously not
>> running. I can see I'm getting closer, but still missing something... any
>> more tips? :)
>>
>>
>>
>> On Tue, Aug 25, 2009 at 5:14 PM, Saúl Ibarra  wrote:
>>
>>> You'll need to make it executable as well as copy the opensips.default
>>> file to /etc/default. That should do the job :)
>>>
>>> Anyway, why don't you make the debian packages so that you install
>>> opensips by just doing dpkg -i and everything is done automagically?
>>>
>>>
>>>
>>> --
>>> /Saúl
>>> http://www.saghul.net | http://www.sipdoc.net
>>>
>>> ___
>>> Users mailing list
>>> Users@lists.opensips.org
>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>
>>
>
> --
> Enviado desde mi dispositivo móvil
>
> /Saúl
> http://www.saghul.net | http://www.sipdoc.net
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] init.d file?

2009-08-25 Thread Saúl Ibarra
Look at /var/run to see if you still have an opensips pid file,
regardless it has been stopped.

2009/8/26, Alex G :
> not using the dpkg because i have all my opensips servers built already. for
> the sake of using monit, i require an init.d file to be there to start/stop
> opensips.
>
> i've changed the pointer for DAEMON and added the default file. I'm getting
> "Starting opensips: opensips already running." but its obviously not
> running. I can see I'm getting closer, but still missing something... any
> more tips? :)
>
>
>
> On Tue, Aug 25, 2009 at 5:14 PM, Saúl Ibarra  wrote:
>
>> You'll need to make it executable as well as copy the opensips.default
>> file to /etc/default. That should do the job :)
>>
>> Anyway, why don't you make the debian packages so that you install
>> opensips by just doing dpkg -i and everything is done automagically?
>>
>>
>>
>> --
>> /Saúl
>> http://www.saghul.net | http://www.sipdoc.net
>>
>> ___
>> Users mailing list
>> Users@lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>

-- 
Enviado desde mi dispositivo móvil

/Saúl
http://www.saghul.net | http://www.sipdoc.net

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] init.d file?

2009-08-25 Thread Alex G
not using the dpkg because i have all my opensips servers built already. for
the sake of using monit, i require an init.d file to be there to start/stop
opensips.

i've changed the pointer for DAEMON and added the default file. I'm getting
"Starting opensips: opensips already running." but its obviously not
running. I can see I'm getting closer, but still missing something... any
more tips? :)



On Tue, Aug 25, 2009 at 5:14 PM, Saúl Ibarra  wrote:

> You'll need to make it executable as well as copy the opensips.default
> file to /etc/default. That should do the job :)
>
> Anyway, why don't you make the debian packages so that you install
> opensips by just doing dpkg -i and everything is done automagically?
>
>
>
> --
> /Saúl
> http://www.saghul.net | http://www.sipdoc.net
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] init.d file?

2009-08-25 Thread Saúl Ibarra
You'll need to make it executable as well as copy the opensips.default
file to /etc/default. That should do the job :)

Anyway, why don't you make the debian packages so that you install
opensips by just doing dpkg -i and everything is done automagically?



-- 
/Saúl
http://www.saghul.net | http://www.sipdoc.net

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] init.d file?

2009-08-25 Thread Brett Nemeroff
Did you make it executable? You may also need to adjust the script to point
to the proper binary location. Open up the script, it's not too tricky.
I'm pretty sure that this line:
test -f $DAEMON || exit 0

Says, "If the binary isn't there, just quietly die, without giving the user
a useful error message"



-Brett



On Tue, Aug 25, 2009 at 3:57 PM, Alex G  wrote:

> so i changed the name of the file to opensips and moved it into init.d, but
> it does not respond to any commands. any hints you could give me?
>
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] init.d file?

2009-08-25 Thread Alex G
so i changed the name of the file to opensips and moved it into init.d, but
it does not respond to any commands. any hints you could give me?

On Tue, Aug 25, 2009 at 3:38 PM, Saúl Ibarra  wrote:

> Look at packaging/debian directory, file is opensips.init.
>
>
> --
> /Saúl
> http://www.saghul.net | http://www.sipdoc.net
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] init.d file?

2009-08-25 Thread Saúl Ibarra
Look at packaging/debian directory, file is opensips.init.


-- 
/Saúl
http://www.saghul.net | http://www.sipdoc.net

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] init.d file?

2009-08-25 Thread Alex G
can anyone point me to a current init.d script for starting/stopping
opensips? am trying use in conjunction  with monit and have an older init.d
from openser days


thanks in advance!
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users