Hi.

I am trying to use the http administration interface to restart Kannel,
but there are a few snags and frankly I believe the current
implementation is broken:

1. Restart does not work in combination with --pid-file
If bearerbox (or smsbox) is started with --pid-file, then the restart
will cause a panic.

This is because the execvp call uses the same arguments (makes sense),
but the attempt to write the pid-file in gwlib/utils.c#write_pid_file
fails/panics as the file already exists.

This could be fixed by removing the pid-file option from the command
line arguments, but I am not sure if this is a good solution.


2. smsbox restarts before bearerbox has restarted
In my experience the smsbox attempts to restart while the bearerbox is
still in the final part of the shutdown. Consequently the smsbox
attempts to bind to the bearerbox before the new bearerbox has opened
the port. This causes smsbox to panic and never get up again.

I am not sure how to fix this issue - any input?

BR
  Jacob





-- 
Jacob Eiler
Apide ApS
e: [email protected]
t: +45 2374 0486
w: apide.com



Reply via email to