Re: [OpenSIPS-Users] Check config files before stop opensips service

2019-02-15 Thread Mickael Hubert
Hi, thanks for your answer I already tried to this: `/usr/sbin/opensips -C -f /etc/opensips/opensips.cfg && /usr/bin/pkill --pidfile %t/opensips/opensips.pid` But even I have a syntax error before stop, the opensips check exit with error, but daemon is killed anyway. Even I havn't ExecStop,

Re: [OpenSIPS-Users] Check config files before stop opensips service

2019-02-15 Thread Răzvan Crainea
Hi, Mickael! 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