Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 38435 invoked from network); 17 May 2005 21:15:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 17 May 2005 21:15:08 -0000 Received: (qmail 21907 invoked by uid 500); 17 May 2005 07:53:18 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 21809 invoked by uid 500); 17 May 2005 07:53:17 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 21768 invoked by uid 99); 17 May 2005 07:53:16 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of jfrederic.clere@fujitsu-siemens.com designates 217.115.66.35 as permitted sender) Received: from dgate1.fujitsu-siemens.com (HELO dgate1.fujitsu-siemens.com) (217.115.66.35) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 17 May 2005 00:53:16 -0700 Received: from trolli.pdb.fsc.net (172.25.97.20) by dgate1.fujitsu-siemens.com with ESMTP; 17 May 2005 09:52:47 +0200 X-SBRSScore: None X-IronPort-AV: i="3.93,113,1114984800"; d="scan'208"; a="9420245:sNHT29049884" Received: from deejai2.mch.fsc.net (deejai2.mch.fsc.net [172.25.124.236]) by trolli.pdb.fsc.net (8.11.6/8.11.6) with ESMTP id j4H7qls22350 for ; Tue, 17 May 2005 09:52:47 +0200 Received: from vtxclere.bcn.fsc.net (vtxclere.bcn.fsc.net [172.25.182.35]) by deejai2.mch.fsc.net (8.13.3/8.13.3) with ESMTP id j4H7qfWd047708 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Tue, 17 May 2005 09:52:42 +0200 (CEST) (envelope-from jfrederic.clere@fujitsu-siemens.com) Received: from [172.25.182.35] (vtxclere.bcn.fsc.net [172.25.182.35]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by vtxclere.bcn.fsc.net (Postfix) with ESMTP id 2A70D57FEC for ; Tue, 17 May 2005 09:52:41 +0200 (CEST) Message-ID: <4289A2C7.9080608@fujitsu-siemens.com> Date: Tue, 17 May 2005 09:52:39 +0200 From: jean-frederic clere Reply-To: jfrederic.clere@fujitsu-siemens.com User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20050401 X-Accept-Language: fr, en, ca, de MIME-Version: 1.0 To: Jakarta Commons Developers List Subject: Re: commons-daemin and mailing list archives issue References: <24e35ac505051300307b8cf538@mail.gmail.com> In-Reply-To: <24e35ac505051300307b8cf538@mail.gmail.com> X-Enigmail-Version: 0.86.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Michal Slocinski wrote: > Hi, > > I've problems with commons-daemon, first I wanted to browse dev > mailing list archives, but current link is dead > (http://mail-archives.apache.org/eyebrowse/SummarizeList?listName=commons-dev@jakarta.apache.org) > so thats why I wrote here directly. > > I'm trying to run jsvc on linux as a non-root user but I've a lot of > issues with that. Generally, jsvc terminates with error: > jsvc.exec error: syscall failed in set_caps > jsvc.exec error: Service exit with a return value of 4 > > I noticed this when: > a) trying to run it without -nodetach option, or > b) trying to run it with -nodetach option but with -outfile and > -errfile set to some file (naturally, I've write permissions to write > there) > > While running jsvc like: > ./jsvc -debug -nodetach -cp commons-daemon.jar:my-daemon.jar mydaemon.Main > > everything works fine, but when I try to remove -nodetach or add > -outfile/-errfile with some file parameters where I've write rights, > jsvc crashes. > > I read somewhere that when running it under 2.6.x kernel I should have > "capability" module loaded, but it is already loaded and even then > jsvc crashes: > $ lsmod | grep capability > capability 4872 0 > commoncap 7168 1 capability > > My kernel is standard Debian Sarge kernel 2.6.8-2-386 > > currently my solution for that problem is to hack jsvc-unix.c and > comment those lines: > if (linuxset_user_group(args->user, uid, gid) != 0) return (4) > > because I don't need running it as a root and then switching it to other user. > I have reproduce the problem... It will be fixed in the release beeing prepared. --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org