Professional Web Applications Themes

Daemon proc run on a port, kill daemon and cannot restart on same port for 10 minutes. - AIX

Unix is AIX 4.3 The daemon is a license manager which runs for an application. Killing the daemon is fine. (using the 'kill -9 <pid>') restarting it returns a message of the kind below... Unable to create socket at port 5634 (76 / 10061) I've heard that there's a 10 minute wait whilst the OS frees the port and believe this to be the case as I've timed a 10 minute thumb-twiddle session! :) Can we change this somehow? You might need to put this in laymans terms aswell because I'm a bit of a simpleton on this I'm afraid. ...

  1. #1

    Default Daemon proc run on a port, kill daemon and cannot restart on same port for 10 minutes.

    Unix is AIX 4.3

    The daemon is a license manager which runs for an application.
    Killing the daemon is fine. (using the 'kill -9 <pid>')
    restarting it returns a message of the kind below...

    Unable to create socket at port 5634 (76 / 10061)

    I've heard that there's a 10 minute wait whilst the OS frees the port
    and believe this to be the case as I've timed a 10 minute
    thumb-twiddle session! :)

    Can we change this somehow?

    You might need to put this in laymans terms aswell because I'm a bit
    of a simpleton on this I'm afraid.

    Much obliged!

    Chiz.
    Chiz Crikey Guest

  2. #2

    Default Re: Daemon proc run on a port, kill daemon and cannot restart on same port for 10 minutes.

    On 10 Sep 2003 00:35:48 -0700,
    Chiz Crikey <iazrt> wrote:

    >Unix is AIX 4.3
    >
    >The daemon is a license manager which runs for an application.
    >Killing the daemon is fine. (using the 'kill -9 <pid>')
    >restarting it returns a message of the kind below...
    >
    kill -9 is bad because the daemon doesn't have a chance to clean up.
    Occasionaly kill -TERM won't work, so kill -KILL might be the last
    resort.
    >Unable to create socket at port 5634 (76 / 10061)
    >
    >I've heard that there's a 10 minute wait whilst the OS frees the port
    >and believe this to be the case as I've timed a 10 minute
    >thumb-twiddle session! :)
    >
    Set the socket option SO_REUSEADDR before binding.
    However, if you didn't write the program there is nothing you can do
    except complaining to whoever wrote it.


    Villy
    Villy Kruse Guest

  3. #3

    Default Re: Daemon proc run on a port, kill daemon and cannot restart on same port for 10 minutes.

    [email]vekstation02.ohout.pharmapartners.nl[/email] (Villy Kruse) wrote in message news:<slrnblto1m.3er.vekstation02.ohout.pharmapar tners.nl>...
    > On 10 Sep 2003 00:35:48 -0700,
    > Chiz Crikey <iazrt> wrote:
    >
    >
    > >Unix is AIX 4.3
    > >
    > >The daemon is a license manager which runs for an application.
    > >Killing the daemon is fine. (using the 'kill -9 <pid>')
    > >restarting it returns a message of the kind below...
    > >
    >
    > kill -9 is bad because the daemon doesn't have a chance to clean up.
    > Occasionaly kill -TERM won't work, so kill -KILL might be the last
    > resort.
    >
    > >Unable to create socket at port 5634 (76 / 10061)
    > >
    > >I've heard that there's a 10 minute wait whilst the OS frees the port
    > >and believe this to be the case as I've timed a 10 minute
    > >thumb-twiddle session! :)
    > >
    >
    > Set the socket option SO_REUSEADDR before binding.
    > However, if you didn't write the program there is nothing you can do
    > except complaining to whoever wrote it.
    >
    >
    > Villy
    Thanks Villy.

    Not sure about the program holding the port. Seems like its AIX itself
    from my perspective. Reason I say this is because its not just this
    daemon process, its on something else aswell (that also runs as a
    daemon).
    Nevertheless, I give the SO_REUSEADDR a go.

    Thanks!
    Chiz.
    Chiz Crikey Guest

Similar Threads

  1. Net::Daemon::SSL
    By bz800k@hotmail.com in forum PERL Modules
    Replies: 0
    Last Post: January 19th, 04:35 AM
  2. daemon??
    By David Carter in forum FreeBSD
    Replies: 2
    Last Post: February 23rd, 02:20 PM
  3. FTP Daemon...
    By Simran in forum PERL Beginners
    Replies: 2
    Last Post: September 5th, 04:53 AM
  4. Daemon
    By solex in forum ASP
    Replies: 0
    Last Post: July 31st, 07:53 PM
  5. Replies: 2
    Last Post: July 22nd, 01:03 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139