Guest User

Untitled

a guest
Jan 22nd, 2019
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.56 KB | None | 0 0
  1. Follow the below steps for restarting kannel:-
  2.  
  3. 1. Stop all the kannel processes by the command, sudo /etc/init.d/kannel_sqlbox stop
  4.  
  5. Output for the command:-
  6.  
  7. [sudo] password for alerts:
  8. Shutting down smsbox... done
  9. Shutting down bearerbox... done
  10.  
  11. 2. Stop all smsbox and bearerbox activities by,
  12. sudo killall -9 smsbox
  13. sudo killall -9 bearerbox
  14.  
  15. 3. Clear and remove the spool location where message queue is stored, and then create a new fresh directory
  16.  
  17. rm -rf /home/alerts/kannel_queue/spool/*
  18. rm -rf /home/alerts/kannel_queue/spool
  19. mkdir /home/alerts/kannel_queue/spool
  20.  
  21. 4. Start the kannel process again.
  22.  
  23. sudo /etc/init.d/kannel_sqlbox start
  24.  
  25. Output for the command:-
  26.  
  27. Starting bearerbox... done
  28. Starting smsbox... done
  29.  
  30.  
  31. If you get an alert something like the following,
  32.  
  33. 2011-06-30 04:29:15 [31721] [0] PANIC: Could not open pid-file `/var/run/smsbox.pid'
  34. 2011-06-30 04:29:15 [31721] [0] PANIC: System error 17: File exists
  35. 2011-06-30 04:29:15 [31721] [0] PANIC: /usr/local/sbin/smsbox(gw_panic+0x16d) [0x43be3d]
  36. 2011-06-30 04:29:15 [31721] [0] PANIC: /usr/local/sbin/smsbox(get_and_set_debugs+0xa80) [0x447dc0]
  37. 2011-06-30 04:29:15 [31721] [0] PANIC: /usr/local/sbin/smsbox(main+0x33) [0x40db73]
  38. 2011-06-30 04:29:15 [31721] [0] PANIC: /lib/libc.so.6(__libc_start_main+0xf4) [0x2ab70567c1c4]
  39. 2011-06-30 04:29:15 [31721] [0] PANIC: /usr/local/sbin/smsbox [0x40d4a9]
  40.  
  41.  
  42. then repeat the steps from 1 to 4 untill the required output has obtained.
Add Comment
Please, Sign In to add comment