[SR-Users] RPCFIFOPATH / DEFINE_FIFO_NAME settings problem

Ginhoux, Patrick patrick.ginhoux at fr.unisys.com
Wed Apr 5 16:50:03 CEST 2017


Hi,

 

The killproc command doesn’t exist :

 

[root at vm-vse02-siprouter2 ~]# killproc -h

-bash: killproc: command not found

 

To help the debug, I added ‘echo’ command at the case statement in the /etc/init.d/Kamailio script :

 

# See how we were called.

case "$1" in

        start|debug)

                echo "GINHOUX Start"

                start

                ;;

        stop)

                echo "GINHOUX"

                stop

                ;;

        status)

                status $KAM

                RETVAL=$?

                ;;

        restart)

                stop

                start

                ;;

        condrestart)

                if [ -f $PID_FILE ] ; then

                        stop

                        start

                fi

                ;;

        *)

                echo "PATRICK 2"

                echo $"Usage: $PROG {start|stop|restart|condrestart|status|debug|help}"

                exit 1

esac

 

The results of the different action are :

 

-          service kamailio stop è Nothing is displayed

-          service kamailio start è Nothing is displayed

-          service kamailio XXX  è “PATRICK 2” is displayed

 

[root at vm-vse02-siprouter2 ~]#

[root at vm-vse02-siprouter2 ~]# service kamailio stop

Stopping kamailio (via systemctl):  Warning: Unit file of kamailio.service changed on disk, 'systemctl daemon-reload' recommended.

                                                           [  OK  ]

 

[root at vm-vse02-siprouter2 ~]# service kamailio start

Starting kamailio (via systemctl):  Warning: Unit file of kamailio.service changed on disk, 'systemctl daemon-reload' recommended.

Job for kamailio.service failed. See 'systemctl status kamailio.service' and 'journalctl -xn' for details.

                                                           [FAILED]

 

[root at vm-vse02-siprouter2 ~]# service kamailio XXX

PATRICK 2

Usage: kamailio {start|stop|restart|condrestart|status|debug|help}

 

It seems that when ‘stop|start’ are used, linux doesn’t run the /etc/init.d/kamailio script.

 

As you can see that it is complaining about the ‘systemctl daemon-reload’ command to use.

 

I proceeded the same (add ‘echo’ command) on another server running the previous Kamailio rpm. On this server there are no display (from the ‘echo’ command) but kamailio stops:

 

[root at vm-vse02-siprouter1 ~]# ps -ef |grep kam

kamailio  1159     1  0 16:35 ?        00:00:00 /usr/sbin/kamailio -P /var/run/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio

kamailio  1161  1159  0 16:36 ?        00:00:00 /usr/sbin/kamailio -P /var/run/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio

kamailio  1162  1159  0 16:36 ?        00:00:00 /usr/sbin/kamailio -P /var/run/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio

kamailio  1163  1159  0 16:36 ?        00:00:00 /usr/sbin/kamailio -P /var/run/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio

kamailio  1164  1159  0 16:36 ?        00:00:00 /usr/sbin/kamailio -P /var/run/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio

kamailio  1165  1159  0 16:36 ?        00:00:00 /usr/sbin/kamailio -P /var/run/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio

kamailio  1166  1159  0 16:36 ?        00:00:00 /usr/sbin/kamailio -P /var/run/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio

kamailio  1167  1159  0 16:36 ?        00:00:00 /usr/sbin/kamailio -P /var/run/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio

kamailio  1168  1159  0 16:36 ?        00:00:00 /usr/sbin/kamailio -P /var/run/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio

kamailio  1169  1159  0 16:36 ?        00:00:00 /usr/sbin/kamailio -P /var/run/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio

kamailio  1170  1159  0 16:36 ?        00:00:00 /usr/sbin/kamailio -P /var/run/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio

kamailio  1171  1159  0 16:36 ?        00:00:00 /usr/sbin/kamailio -P /var/run/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio

kamailio  1172  1159  0 16:36 ?        00:00:00 /usr/sbin/kamailio -P /var/run/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio

kamailio  1173  1159  0 16:36 ?        00:00:00 /usr/sbin/kamailio -P /var/run/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio

root      1210  1189  0 16:36 pts/0    00:00:00 tail -f /var/log/kamailio/kamailio.log

root      1242  1220  0 16:45 pts/1    00:00:00 grep --color=auto kam

 

[root at vm-vse02-siprouter1 ~]# service kamailio stop

Stopping kamailio (via systemctl):                         [  OK  ]

 

[root at vm-vse02-siprouter1 ~]# ps -ef |grep kam

root      1210  1189  0 16:36 pts/0    00:00:00 tail -f /var/log/kamailio/kamailio.log

root      1273  1220  0 16:46 pts/1    00:00:00 grep --color=auto kam

[root at vm-vse02-siprouter1 ~]#

[root at vm-vse02-siprouter1 ~]# rpm -qa |grep kam

kamailio-5.0.0-7.1.x86_64

 

it really strange.

 

So I’m going to revert back to the previous Kamailio rpm on the server where the stop command doesn’t work.

 

Cordialement

Patrick GINHOUX

 

De : Daniel-Constantin Mierla [mailto:miconda at gmail.com] 
Envoyé : mercredi 5 avril 2017 16:00
À : Ginhoux, Patrick <patrick.ginhoux at fr.unisys.com>
Cc : Kamailio (SER) - Users Mailing List <sr-users at lists.sip-router.org>
Objet : Re: [SR-Users] RPCFIFOPATH / DEFINE_FIFO_NAME settings problem

 

Hello,

 

On 05.04.17 15:46, Ginhoux, Patrick wrote:

Hi,

 

Nothing happens after the ‘service kamailio stop’; kamailio is still running (same pid) ((as detaillled below).

 

can you run in terminal and give the output of the next command?

killproc -h

It seems that some versions are using a default path to PID file, which may not match where kamailio writes it.

Cheers,
Daniel





-- 
Daniel-Constantin Mierla
www.twitter.com/miconda <http://www.twitter.com/miconda>  -- www.linkedin.com/in/miconda <http://www.linkedin.com/in/miconda> 
Kamailio Advanced Training - May 22-24 (USA) - www.asipto.com <http://www.asipto.com> 
Kamailio World Conference - May 8-10, 2017 - www.kamailioworld.com <http://www.kamailioworld.com> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20170405/1e5a8f41/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 7886 bytes
Desc: not available
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20170405/1e5a8f41/attachment.bin>


More information about the sr-users mailing list