[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Debian JP master SVN www commits (rev.556)
=======================================================
Repository: /org/svn.debian.or.jp/repos
Revision: 556
Commiter: yasu
Date: 2008-02-05 20:37:36 +0900 (火, 05 2月 2008)
=======================================================
Log:
run by nobody
=======================================================
Changed:
U cdn/trunk/DNS-Balance/ChangeLog
U cdn/trunk/DNS-Balance/dns_balance.rb
Modified: cdn/trunk/DNS-Balance/ChangeLog
===================================================================
--- cdn/trunk/DNS-Balance/ChangeLog 2008-02-05 11:07:47 UTC (rev 555)
+++ cdn/trunk/DNS-Balance/ChangeLog 2008-02-05 11:37:36 UTC (rev 556)
@@ -3,7 +3,8 @@
* dns_balance.rb:
- Change to run default daemon mode. If you want to run foreground, run with '-F'.
- Add '--logfile' option (default /var/log/dns_balance.log)
-
+ (run): Change to run by nobody (uid=65534)
+
* multilog.rb (MultiLog::log): Add timestamp.
2008-02-04 ARAKI Yasuhiro <ar@debian.org>
Modified: cdn/trunk/DNS-Balance/dns_balance.rb
===================================================================
--- cdn/trunk/DNS-Balance/dns_balance.rb 2008-02-05 11:07:47 UTC (rev 555)
+++ cdn/trunk/DNS-Balance/dns_balance.rb 2008-02-05 11:37:36 UTC (rev 556)
@@ -6,6 +6,9 @@
# $Id: dns_balance.rb,v 1.25 2003/06/13 22:07:27 elca Exp $
+## Modify for debian cdn
+## By ARAKI Yasuhiro <ar@debian.org>
+
# DNS Balance の存在するパス名
if ENV["ROOT"] == nil
warn("\"ROOT\" environment is recommended. Use current directory in this time.")
@@ -16,6 +19,8 @@
$LOAD_PATH.unshift(PREFIX)
end
+
+
$process_file = '/var/run/dns_balance.pid'
$logfile = '/var/log/dns_balance.log'
@@ -265,6 +270,7 @@
}
}
+
gs = UDPSocket::new()
sockaddr = (if OPT["i"] == nil then Socket::INADDR_ANY else OPT["i"] end)
if OPT["port"]
@@ -272,6 +278,7 @@
else
gs.bind(sockaddr, Service::Domain)
end
+ Process::UID.eid=65534
#
# メインループ
@@ -440,7 +447,6 @@
ML = MultiLog::new
if OPT["unfork"]
-
if OPT["logfile"]
fd = open($logfile, "w")
ML.open(fd)