Return-Path: Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: (qmail 23633 invoked from network); 6 Dec 2010 20:47:31 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 6 Dec 2010 20:47:31 -0000 Received: (qmail 39038 invoked by uid 500); 6 Dec 2010 20:47:31 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 39021 invoked by uid 500); 6 Dec 2010 20:47:31 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 39008 invoked by uid 99); 6 Dec 2010 20:47:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Dec 2010 20:47:31 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Dec 2010 20:47:31 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oB6KlANn005558 for ; Mon, 6 Dec 2010 20:47:10 GMT Message-ID: <1425698.4871291668430378.JavaMail.jira@thor> Date: Mon, 6 Dec 2010 15:47:10 -0500 (EST) From: "Jonathan Ellis (JIRA)" To: commits@cassandra.apache.org Subject: [jira] Assigned: (CASSANDRA-1718) cassandra should chdir / when daemonizing In-Reply-To: <19931174.80201289245274489.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-1718?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jonathan Ellis reassigned CASSANDRA-1718: ----------------------------------------- Assignee: Eric Evans > cassandra should chdir / when daemonizing > ----------------------------------------- > > Key: CASSANDRA-1718 > URL: https://issues.apache.org/jira/browse/CASSANDRA-1718 > Project: Cassandra > Issue Type: Bug > Components: Packaging > Environment: Debian squeeze, Cassandra 0.7.0-beta3 and trunk (r1032649) > Reporter: paul cannon > Assignee: Eric Evans > Priority: Minor > Fix For: 0.7.1 > > > Common practice when daemonizing is to cd / to avoid pinning a filesystem. For example, if the oper happens to start Cassandra (by itself, or with a manual jsvc invocation, or with the initscript) in /mnt/usb-storage, and there is something mounted there, then the oper will not be able to unmount the usb device that was mounted at that location, since the cassandra process has it open as its cwd. > evidence that this isn't being done already: > {noformat} > ~% sudo lsof -p 9775 | awk '$4=="cwd"' > jsvc 9775 cassandra cwd DIR 8,1 4096 147675 /home/paul/packages/cassandra/trunk > {noformat} > (That instance was invoked using the Debian initscript.) > Obviously chdir("/") isn't necessary when not daemonizing, although it shouldn't hurt either. > If there are concerns about Cassandra having an ongoing ability to open filenames relative to its original working directory, then it should be sufficient just to do a "cd /" in the initscript before starting Cassandra. That case, at least, is particularly important. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.