[OpenSIPS-Users] Check config files before stop opensips service
razvan at opensips.org
Fri Feb 15 04:57:34 EST 2019
You can use either -C and -c parameters when starting OpenSIPS to check
the config syntax. If you want to check it before stopping OpenSIPS,
you'll have to adjust your opensips.service file to run a different
ExecStop command, something like `/usr/sbin/opensips -C -f
/etc/opensips/opensips.cfg && /usr/bin/pkill --pidfile
Hope this helps!
On 2/13/19 9:22 PM, Mickael Hubert wrote:
> I would like to know, if there is a way to check opensips's config files
> before stop service.
> Ex: If I do a syntax error into cfg files (with opensips started), I
> want to "ban" the daemon shutdown (service opensips stop)
> I'm playing with opensips.service and opensips -C -f $config to try to
> reach my goal, but I'm not be able to do at this moment...
> Do you have an idea please ?
> Thanks in advance
> Users mailing list
> Users at lists.opensips.org
OpenSIPS Core Developer
Meet the OpenSIPS team at the next OpenSIPS Summit:
More information about the Users