[OpenSIPS-Users] Issue with /etc/init.d/opensips on new test install
Peter Flowers
pflowers at mergecom.co.nz
Tue Oct 21 03:19:21 CEST 2014
Hi
I was following the OpenSIPS Kick Start video but using Debian 7.4 and
OpenSIPS 1.11.3. Everything went pretty well till the end and starting
openSIPS with the init script.
I set the install prefix as /usr/local/opensips and created a residential
cfg file. This I renamed to opensips_residential.cfg.
When I went to start opensips with /etc/init.d/opensips start there were
lots of critical errors like these
Oct 20 22:43:44 [3363] CRITICAL:core:yyerror: parse error in config file
/usr/local/opensips//etc/opensips/opensips.cfg, line 255, column 15-16:
unknown command <t_relay>, missing loadmodule?
Oct 20 22:43:44 [3363] CRITICAL:core:yyerror: parse error in config file
/usr/local/opensips//etc/opensips/opensips.cfg, line 256, column 19-20:
unknown command <send_reply>, missing loadmodule?
Oct 20 22:43:44 [3363] CRITICAL:core:yyerror: parse error in config file
/usr/local/opensips//etc/opensips/opensips.cfg, line 276, column 22-23:
unknown command <t_was_cancelled>, missing loadmodule?
Oct 20 22:43:44 [3363] ERROR:core:main: bad config file (79 errors)
The new layout of the init.d script is a bit different than the video,
particularly the beginning. It looks to me like the init.d script is not
picking up the correct location of the opensips_residential.cfg file and
picking a default opensips.cfg file.
This is what I put in the init.d
PATH=/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=*/usr/local/opensips/sbin/opensips*
NAME=opensips
DESC=opensips
CFGFILE=*/usr/local/opensips/etc/opensips/opensips_residential.cfg*
M4CFGFILE=/etc/opensips/opensips.m4
M4ARCHIVEDIR=/etc/opensips/archive
HOMEDIR=/var/run/opensips
PIDFILE=$HOMEDIR/$NAME.pid
DEFAULTS=/etc/default/opensips
RUN_OPENSIPS=no
and the options line looks like this
OPTIONS="-P $PIDFILE -m $S_MEMORY -M $P_MEMORY -u $USER -g $GROUP *-f
/usr/local/opensips/etc/opensips/opensips_residential.cfg*"
Any ideas very gratefully accepted
--
Peter Flowers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20141021/2b160523/attachment.htm>
More information about the Users
mailing list