HTTP admin restart issues

Jacob Eiler <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Organization Apide ApS
Message-ID <1314710435.2280.24.camel@flander>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.