After SIGINT received SMSBOX restarts (bug or a feature)
Hello, I've been testing kannel 1.5.0 for some time and I've noticed that when I start smsbox from command line - ./smsbox -v 0 /vas/config/kannel_tanja.conf (not as daemon) , and than try to shut it down by generating SIGINT signal (CTRL+C), but smsbox process restarts with new PID. Please see output given bellow. My question is: Is this bug in smsbox process or a feature (expected behavior)? testgw:/vas/bin/kannel_1.5.0_ modified/sbin # ./smsbox -v 0 /vas/config/kannel_tanja.conf 2012-04-19 12:01:46 [984] [0] INFO: Debug_lvl = 0, log_file = none, log_lvl = 0 2012-04-19 12:01:46 [984] [0] DEBUG: Loading include file `/vas/config/kannel/kannel_services.conf' (on line 148 of file /vas/config/kannel_tanja.conf). 2012-04-19 12:01:46 [984] [0] DEBUG: Kannel smsbox version `svn-r'. Build `Apr 10 2012 10:37:05', compiler `4.3.4 [gcc-4_3-branch revision 152973]'. System Linux, release 3.0.13-0.27-default, version #1 SMP Wed Feb 15 13:33:49 UTC 2012 (d73692b), machine x86_64. Hostname testgw.one.net.mk, IP 127.0.0.2. Libxml version 2.7.6. Compiled with MySQL 5.5.21, using MySQL 5.5.21. Using native malloc. 2012-04-19 12:01:46 [984] [0] INFO: Logging accesses to '/vas/logs/kannel/smsboxaccess.log'. 2012-04-19 12:01:46 [984] [0] INFO: Started access logfile `/vas/logs/kannel/smsboxaccess.log'. 2012-04-19 12:01:46 [984] [0] INFO: HTTP: Opening server at port 4004. 2012-04-19 12:01:46 [984] [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller) 2012-04-19 12:01:46 [984] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps to pid 984. 2012-04-19 12:01:46 [984] [0] DEBUG: Started thread 2 (gwlib/http.c:server_thread) 2012-04-19 12:01:46 [984] [0] INFO: Set up send sms service at port 4004 2012-04-19 12:01:46 [984] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) maps to pid 984. 2012-04-19 12:01:46 [984] [0] DEBUG: Started thread 3 (gw/smsbox.c:sendsms_thread) 2012-04-19 12:01:46 [984] [3] DEBUG: Thread 3 (gw/smsbox.c:sendsms_thread) maps to pid 984. 2012-04-19 12:01:46 [984] [2] DEBUG: HTTP: Including port 4004, fd 9 for polling in server thread 2012-04-19 12:01:46 [984] [0] INFO: Using HTTP request queueing with 10 retries, 60s delay. 2012-04-19 12:01:46 [984] [0] DEBUG: -- 2012-04-19 12:01:46 [984] [0] DEBUG: Kannel smsbox version svn-r starting 2012-04-19 12:01:46 [984] [0] DEBUG: dumping group (sendsms-user): 2012-04-19 12:01:46 [984] [0] DEBUG: user-allow-ip = *.*.*.* 2012-04-19 12:01:46 [984] [0] DEBUG: group = sendsms-user 2012-04-19 12:01:46 [984] [0] DEBUG: max-messages = 4 2012-04-19 12:01:46 [984] [0] DEBUG: forced-smsc = smsc4.7 2012-04-19 12:01:46 [984] [0] DEBUG: username = bulk 2012-04-19 12:01:46 [984] [0] DEBUG: concatenation = 1 2012-04-19 12:01:46 [984] [0] DEBUG: split-chars = #! 2012-04-19 12:01:46 [984] [0] DEBUG: password = bulk 2012-04-19 12:01:46 [984] [0] DEBUG: dumping group (sendsms-user): 2012-04-19 12:01:46 [984] [0] DEBUG: user-allow-ip = localhost 2012-04-19 12:01:46 [984] [0] DEBUG: group = sendsms-user 2012-04-19 12:01:46 [984] [0] DEBUG: max-messages = 4 2012-04-19 12:01:46 [984] [0] DEBUG: forced-smsc = smsc4.7 2012-04-19 12:01:46 [984] [0] DEBUG: username = api 2012-04-19 12:01:46 [984] [0] DEBUG: concatenation = 1 2012-04-19 12:01:46 [984] [0] DEBUG: split-chars = #! 2012-04-19 12:01:46 [984] [0] DEBUG: password = pre456paid 2012-04-19 12:01:46 [984] [0] DEBUG: dumping group (sendsms-user): 2012-04-19 12:01:46 [984] [0] DEBUG: user-allow-ip = *.*.*.* 2012-04-19 12:01:46 [984] [0] DEBUG: group = sendsms-user 2012-04-19 12:01:46 [984] [0] DEBUG: dlr-url = http://vasgw/srvKBPrvo/dlr.php?from=%pto=%Pvalue=%dreply=%A 2012-04-19 12:01:46 [984] [0] DEBUG: max-messages = 4 2012-04-19 12:01:46 [984] [0] DEBUG: forced-smsc = smsc4.7 2012-04-19 12:01:46 [984] [0] DEBUG: username = bulkdlr 2012-04-19 12:01:46 [984] [0] DEBUG: concatenation = 1 2012-04-19 12:01:46 [984] [0] DEBUG: split-chars = #! 2012-04-19 12:01:46 [984] [0] DEBUG: password = bulkdlr 2012-04-19 12:01:46 [984] [0] DEBUG: dumping group (sendsms-user): 2012-04-19 12:01:46 [984] [0] DEBUG: user-allow-ip = localhost 2012-04-19 12:01:46 [984] [0] DEBUG: group = sendsms-user 2012-04-19 12:01:46 [984] [0] DEBUG: max-messages = 4 2012-04-19 12:01:46 [984] [0] DEBUG: forced-smsc = smsc4.7 2012-04-19 12:01:46 [984] [0] DEBUG: username = om 2012-04-19 12:01:46 [984] [0] DEBUG: concatenation = 1 2012-04-19 12:01:46 [984] [0] DEBUG: split-chars = #! 2012-04-19 12:01:46 [984] [0] DEBUG: password = Trmtrm 2012-04-19 12:01:46 [984] [4] DEBUG: Thread 4 (gw/smsbox.c:obey_request_thread) maps to pid 984. 2012-04-19 12:01:46 [984] [0] DEBUG: Started thread 4 (gw/smsbox.c:obey_request_thread) 2012-04-19 12:01:46 [984] [0] DEBUG: Started thread 5 (gw/smsbox.c:url_result_thread) 2012-04-19 12:01:46 [984] [5] DEBUG: Thread 5 (gw/smsbox.c:url_result_thread) maps to pid
Re: After SIGINT received SMSBOX restarts (bug or a feature)
On Fri, 2012-04-20 at 09:19, Tanja Kipreska wrote: Hello, I've been testing kannel 1.5.0 for some time and I've noticed that when I start smsbox from command line - ./smsbox -v 0 /vas/config/kannel_tanja.conf (not as daemon) , and than try to shut it down by generating SIGINT signal (CTRL+C), but smsbox process restarts with new PID. Please see output given bellow. My question is: Is this bug in smsbox process or a feature (expected behavior)? I tried to start bearbox and smsbox (svn version) from command line and stop it with CTRL-C (SIGINT). Both works as expected. I can't see any bug in mentioned behavior, and smsbox (nor bearbox) doesn't have that feature. Did you changed source? testgw:/vas/bin/kannel_1.5.0_ modified/sbin # ./smsbox -v 0 /vas/config/kannel_tanja.conf 2012-04-19 12:01:46 [984] [0] INFO: Debug_lvl = 0, log_file = none, log_lvl = 0 2012-04-19 12:01:46 [984] [0] DEBUG: Loading include file `/vas/config/kannel/kannel_services.conf' (on line 148 of file /vas/config/kannel_tanja.conf). 2012-04-19 12:01:46 [984] [0] DEBUG: Kannel smsbox version `svn-r'. Build `Apr 10 2012 10:37:05', compiler `4.3.4 [gcc-4_3-branch revision 152973]'. System Linux, release 3.0.13-0.27-default, version #1 SMP Wed Feb 15 13:33:49 UTC 2012 (d73692b), machine x86_64. Hostname testgw.one.net.mk, IP 127.0.0.2. Libxml version 2.7.6. Compiled with MySQL 5.5.21, using MySQL 5.5.21. Using native malloc. 2012-04-19 12:01:46 [984] [0] INFO: Logging accesses to '/vas/logs/kannel/smsboxaccess.log'. 2012-04-19 12:01:46 [984] [0] INFO: Started access logfile `/vas/logs/kannel/smsboxaccess.log'. 2012-04-19 12:01:46 [984] [0] INFO: HTTP: Opening server at port 4004. 2012-04-19 12:01:46 [984] [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller) 2012-04-19 12:01:46 [984] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps to pid 984. 2012-04-19 12:01:46 [984] [0] DEBUG: Started thread 2 (gwlib/http.c:server_thread) 2012-04-19 12:01:46 [984] [0] INFO: Set up send sms service at port 4004 2012-04-19 12:01:46 [984] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) maps to pid 984. 2012-04-19 12:01:46 [984] [0] DEBUG: Started thread 3 (gw/smsbox.c:sendsms_thread) 2012-04-19 12:01:46 [984] [3] DEBUG: Thread 3 (gw/smsbox.c:sendsms_thread) maps to pid 984. 2012-04-19 12:01:46 [984] [2] DEBUG: HTTP: Including port 4004, fd 9 for polling in server thread 2012-04-19 12:01:46 [984] [0] INFO: Using HTTP request queueing with 10 retries, 60s delay. 2012-04-19 12:01:46 [984] [0] DEBUG: -- 2012-04-19 12:01:46 [984] [0] DEBUG: Kannel smsbox version svn-r starting 2012-04-19 12:01:46 [984] [0] DEBUG: dumping group (sendsms-user): 2012-04-19 12:01:46 [984] [0] DEBUG: user-allow-ip = *.*.*.* 2012-04-19 12:01:46 [984] [0] DEBUG: group = sendsms-user 2012-04-19 12:01:46 [984] [0] DEBUG: max-messages = 4 2012-04-19 12:01:46 [984] [0] DEBUG: forced-smsc = smsc4.7 2012-04-19 12:01:46 [984] [0] DEBUG: username = bulk 2012-04-19 12:01:46 [984] [0] DEBUG: concatenation = 1 2012-04-19 12:01:46 [984] [0] DEBUG: split-chars = #! 2012-04-19 12:01:46 [984] [0] DEBUG: password = bulk 2012-04-19 12:01:46 [984] [0] DEBUG: dumping group (sendsms-user): 2012-04-19 12:01:46 [984] [0] DEBUG: user-allow-ip = localhost 2012-04-19 12:01:46 [984] [0] DEBUG: group = sendsms-user 2012-04-19 12:01:46 [984] [0] DEBUG: max-messages = 4 2012-04-19 12:01:46 [984] [0] DEBUG: forced-smsc = smsc4.7 2012-04-19 12:01:46 [984] [0] DEBUG: username = api 2012-04-19 12:01:46 [984] [0] DEBUG: concatenation = 1 2012-04-19 12:01:46 [984] [0] DEBUG: split-chars = #! 2012-04-19 12:01:46 [984] [0] DEBUG: password = pre456paid 2012-04-19 12:01:46 [984] [0] DEBUG: dumping group (sendsms-user): 2012-04-19 12:01:46 [984] [0] DEBUG: user-allow-ip = *.*.*.* 2012-04-19 12:01:46 [984] [0] DEBUG: group = sendsms-user 2012-04-19 12:01:46 [984] [0] DEBUG: dlr-url = http://vasgw/srvKBPrvo/dlr.php?from=%pto=%Pvalue=%dreply=%A 2012-04-19 12:01:46 [984] [0] DEBUG: max-messages = 4 2012-04-19 12:01:46 [984] [0] DEBUG: forced-smsc = smsc4.7 2012-04-19 12:01:46 [984] [0] DEBUG: username = bulkdlr 2012-04-19 12:01:46 [984] [0] DEBUG: concatenation = 1 2012-04-19 12:01:46 [984] [0] DEBUG: split-chars = #! 2012-04-19 12:01:46 [984] [0] DEBUG: password = bulkdlr 2012-04-19 12:01:46 [984] [0] DEBUG: dumping group (sendsms-user): 2012-04-19 12:01:46 [984] [0] DEBUG: user-allow-ip = localhost 2012-04-19 12:01:46 [984] [0] DEBUG: group = sendsms-user 2012-04-19 12:01:46 [984] [0] DEBUG: max-messages = 4 2012-04-19 12:01:46 [984] [0] DEBUG: forced-smsc = smsc4.7 2012-04-19 12:01:46 [984] [0] DEBUG: username = om 2012-04-19 12:01:46 [984] [0] DEBUG: concatenation = 1 2012-04-19 12:01:46 [984] [0] DEBUG: split-chars = #! 2012-04-19 12:01:46 [984] [0]