[OpenSIPS-Users] How to start OpenSIPS 3.0 server

Callum Guy callum.guy at x-on.co.uk
Thu Feb 13 11:41:31 EST 2020


I would imagine Liviu is correct, the answer will be quite clear

Not sure if you have seen my earlier comments but wanted to reiterate that
your initial email shows a resource limit error "Starting opensips (via
systemctl):  Job for opensips.service failed because a configured resource
limit was exceeded."

Try looking at the service file systemd is using, try something like the
following (P.S. your init.d file is probably not relevant):

[16:36]  FR-P-SIPSBC-3 🙂 $ sudo systemctl cat opensips
# /etc/systemd/system/opensips.service
[Unit]
Description=OpenSIPS is a very fast and flexible SIP (RFC3261) server
Documentation=man:opensips
After=network.target mysqld.service postgresql.service rtpproxy.service

[Service]
Type=forking
User=opensips
Group=opensips
RuntimeDirectory=opensips
RuntimeDirectoryMode=775
Environment=
EnvironmentFile=-/etc/sysconfig/opensips
PermissionsStartOnly=yes
PIDFile=%t/opensips/opensips.pid
ExecStart=/usr/sbin/opensips -P %t/opensips/opensips.pid -f
/etc/opensips/opensips.cfg -m $S_MEMORY -M $P_MEMORY $OPTIONS
ExecStop=/usr/bin/pkill --pidfile %t/opensips/opensips.pid
Restart=always
TimeoutStopSec=30s
LimitNOFILE=262144

[Install]
WantedBy=multi-user.target

Try changing the P_MEMORY/S_MEMORY values in the listed Env file and if you
tweak this file run systemctl daemon-reload before trying to start it.

On Thu, 13 Feb 2020 at 16:10, Liviu Chircu <liviu at opensips.org> wrote:

> On 13.02.2020 11:19, Tekin, Arda wrote:
>
> It prints too many logs when I run below command manually
>
> opensips –DD –E
>
> Well, those logs are _exactly_ where you should be starting at!  Redirect
> them
> to a file, maybe with "opensips -D -E &>/tmp/out &", then do "less
> /tmp/out" and
> take a look for any helpful errors.
>
> I assume you just want to start with the default
> /etc/opensips/opensips.cfg that
> comes with the "opensips" CentOS package, right?
>
> Regards,
>
> --
> Liviu Chircuwww.twitter.com/liviuchircu | www.opensips-solutions.com
>
> OpenSIPS Summit, Amsterdam, May 2020
>   www.opensips.org/events
> OpenSIPS Bootcamp, Miami, March 2020
>   www.opensips.org/training
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>

-- 





*0333 332 0000  |  www.x-on.co.uk <http://www.x-on.co.uk>  |   ** 
<https://www.linkedin.com/company/x-on>   <https://www.facebook.com/XonTel> 
  <https://twitter.com/xonuk> *


X-on
is a trading name of Storacall 
Technology Ltd a limited company registered in
England and Wales.


Registered Office : Avaland House, 110 London Road, Apsley, Hemel 
Hempstead,
Herts, HP3 9SD. Company Registration No. 2578478.

The 
information in this e-mail is confidential and for use by the addressee(s)

only. If you are not the intended recipient, please notify X-on immediately 
on +44(0)333 332 0000 and delete the
message from your computer. If you are 
not a named addressee you must not use,
disclose, disseminate, distribute, 
copy, print or reply to this email. Views
or opinions expressed by an 
individual
within this email may not necessarily
reflect the views of X-on 
or its associated companies. Although X-on routinely
screens for viruses, 
addressees should scan this email and any attachments
for
viruses. X-on 
makes no representation or warranty as to the absence of viruses
in this 
email or any attachments.










-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20200213/1c870551/attachment.html>


More information about the Users mailing list