From owner-freebsd-hackers@FreeBSD.ORG Tue Mar 7 22:07:53 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C5B8016A420 for ; Tue, 7 Mar 2006 22:07:53 +0000 (GMT) (envelope-from gizmen@blurp.t2.ds.pwr.wroc.pl) Received: from blurp.t2.ds.pwr.wroc.pl (blurp.t2.ds.pwr.wroc.pl [156.17.224.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3A6C943D45 for ; Tue, 7 Mar 2006 22:07:53 +0000 (GMT) (envelope-from gizmen@blurp.t2.ds.pwr.wroc.pl) Received: from localhost (localhost [127.0.0.1]) by blurp.t2.ds.pwr.wroc.pl (Postfix) with ESMTP id 064E06FB for ; Tue, 7 Mar 2006 23:07:48 +0100 (CET) Received: from blurp.t2.ds.pwr.wroc.pl ([127.0.0.1]) by localhost (blurp.pl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 59382-07 for ; Tue, 7 Mar 2006 23:07:47 +0100 (CET) Received: by blurp.t2.ds.pwr.wroc.pl (Postfix, from userid 1001) id 4C8DF6AD; Tue, 7 Mar 2006 23:07:47 +0100 (CET) Date: Tue, 7 Mar 2006 23:07:47 +0100 From: GiZmen To: hackers@freebsd.org Message-ID: <20060307220747.GA58803@blurp.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.11 X-Virus-Scanned: amavisd-new at blurp.pl Cc: Subject: mysql.sock and jails X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Mar 2006 22:07:53 -0000 Hi, I am a user of freebsd 6.0 box. I have couple jails on this box. One of them are closed apache and mysql. Mysqld creates mysql.sock for local connections in /tmp dir inside it's jail. Second jail where i have apache runnig needs to connect to mysqld. Right now it connect tru IP connection to database. I have recently tried to mount_null /tmp dir from mysql jail to some dir in httpd jail. There where no problem. I can see mysql.sock in httpd jail but i can't connect to database through this socket. It says only that it can't connect through this socket to database. I have tried also to hard link mysql.sock from mysql jail to httpd jail and this is working fine. But option with mount_null is easier for me and i would like use if it possible. Could anyone tell that is it possible to achieve this ?? I am plannig to run more services which will need access to mysql and i thought that i will can use mount_null feature to propagate mysql.sock to each jail. Yes i know that i can use IP communication but AFAIK connections through socket is faster than IP. Thanks for any suggestion -- Best Regards: GiZmen UNIX is user-friendly; it's just picky about its friends UNIX is simple; it just takes a genius to understand its simplicity