Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 07 Oct 2011 13:59:06 +0100
From:      Paul Macdonald <paul@ifdnrg.com>
To:        FreeBSD Mailing List <freebsd-questions@freebsd.org>
Subject:   ruby question
Message-ID:  <4E8EF79A.3010900@ifdnrg.com>

next in thread | raw e-mail | index | archive | help

I will obviously mail the ruby list as well, but on the off chance 
someone here might be able to help,

i  have a simple ruby mgmt program listening on a network port,  which 
accepts commands and does appropriate stuff,

however restarted services weirdly seem to hold the port of the process,

One of the things it does is to restart system services
<ruby code>
                        system "/usr/local/etc/rc.d/proftpd start"

sockstat -4 -l then shows that the proftpd process is

nobody   proftpd    30996 1  tcp4   *:21                  *:*
nobody   proftpd    30885 3  tcp4   [hostIP]:844    *:*
root     ruby       30826 3  tcp4   [hostIP]:844    *:*

This doesn't affect the running of the ftp server or the ruby daemon, 
but it means that i need to restart the various other daemons to release 
the 844 socket.

any thoughts?

-- 
-------------------------
Paul Macdonald
IFDNRG Ltd
Web and video hosting
-------------------------
t: 0131 5548070
m: 07534206249
e: paul@ifdnrg.com
w: http://www.ifdnrg.com
-------------------------
IFDNRG
40 Maritime Street
Edinburgh
EH6 6SA
-------------------------





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4E8EF79A.3010900>