Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Follow the below steps for restarting kannel:-
- 1. Stop all the kannel processes by the command, sudo /etc/init.d/kannel_sqlbox stop
- Output for the command:-
- [sudo] password for alerts:
- Shutting down smsbox... done
- Shutting down bearerbox... done
- 2. Stop all smsbox and bearerbox activities by,
- sudo killall -9 smsbox
- sudo killall -9 bearerbox
- 3. Clear and remove the spool location where message queue is stored, and then create a new fresh directory
- rm -rf /home/alerts/kannel_queue/spool/*
- rm -rf /home/alerts/kannel_queue/spool
- mkdir /home/alerts/kannel_queue/spool
- 4. Start the kannel process again.
- sudo /etc/init.d/kannel_sqlbox start
- Output for the command:-
- Starting bearerbox... done
- Starting smsbox... done
- If you get an alert something like the following,
- 2011-06-30 04:29:15 [31721] [0] PANIC: Could not open pid-file `/var/run/smsbox.pid'
- 2011-06-30 04:29:15 [31721] [0] PANIC: System error 17: File exists
- 2011-06-30 04:29:15 [31721] [0] PANIC: /usr/local/sbin/smsbox(gw_panic+0x16d) [0x43be3d]
- 2011-06-30 04:29:15 [31721] [0] PANIC: /usr/local/sbin/smsbox(get_and_set_debugs+0xa80) [0x447dc0]
- 2011-06-30 04:29:15 [31721] [0] PANIC: /usr/local/sbin/smsbox(main+0x33) [0x40db73]
- 2011-06-30 04:29:15 [31721] [0] PANIC: /lib/libc.so.6(__libc_start_main+0xf4) [0x2ab70567c1c4]
- 2011-06-30 04:29:15 [31721] [0] PANIC: /usr/local/sbin/smsbox [0x40d4a9]
- then repeat the steps from 1 to 4 untill the required output has obtained.
Add Comment
Please, Sign In to add comment