Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 36225 invoked from network); 14 May 2007 15:23:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 May 2007 15:23:14 -0000 Received: (qmail 58315 invoked by uid 500); 14 May 2007 15:23:20 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 58264 invoked by uid 500); 14 May 2007 15:23:20 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 58252 invoked by uid 99); 14 May 2007 15:23:20 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 May 2007 08:23:20 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of ole.ersoy@gmail.com designates 66.249.82.226 as permitted sender) Received: from [66.249.82.226] (HELO wx-out-0506.google.com) (66.249.82.226) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 May 2007 08:23:12 -0700 Received: by wx-out-0506.google.com with SMTP id h31so1612643wxd for ; Mon, 14 May 2007 08:22:52 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; b=AivMSD4AbB9ocbJ9Cmwhwl6ghObBI7WYAQ7aZE9iOj7b/zFjHUUbzZJspovZMf0yCXqna/+TWtk2/YPoq9gw1xOl5snrdUFaTUwDUv6s8Z4iChO6rcv/U/9/9aCBy8LSJRX26I1Yp56tIYjslqiIwDeNm42yAZ9rzT4D/0lVI44= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; b=RXYkqIg1xOFa98c9V5RlOeB5zZtKEIXzYna8RO/wD16n/0i+iPUxPoSq5u3+6G3B24Z/a9TWLWXV49UF3yF0IY81pHhqQRVzxGkTJ8AJwJ1Kz7GKqcXmil34xMJOCZ/WPxvAhY1m+wTtd/R+JSipI8J4Jp7hvhCkGlU9LcNnGZ0= Received: by 10.90.115.4 with SMTP id n4mr4922297agc.1179156171901; Mon, 14 May 2007 08:22:51 -0700 (PDT) Received: from ?192.168.1.4? ( [24.13.179.233]) by mx.google.com with ESMTP id 20sm12394430nzp.2007.05.14.08.22.47; Mon, 14 May 2007 08:22:49 -0700 (PDT) Message-ID: <46487DB3.8000108@gmail.com> Date: Mon, 14 May 2007 10:18:11 -0500 From: Ole Ersoy User-Agent: Thunderbird 1.5.0.10 (X11/20070302) MIME-Version: 1.0 To: Apache Directory Developers List Subject: Re: [Installer] Possible Bug - apacheds start fails because it cannot create the rolling log References: <464785B2.70100@gmail.com> <4647FFCD.60904@apache.org> <464871FA.7010203@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Yup - It's in there. Also - Here is how the JPackage creates the user for the Tomcat install (I'm guessing you are going to ask me to add this to the JIRA next, so I'll go ahead and add it :-) ): %pre # Add the "tomcat" user and group # we need a shell to be able to use su - later if grep ^tomcat: /etc/group 1>/dev/null 2>/dev/null; then echo Group tomcat already exists, not adding group else if grep :%{tcuid}: /etc/group 1>/dev/null 2>/dev/null; then echo GID %{tcuid} already exists, not adding group else %{_sbindir}/groupadd -g %{tcuid} -r tomcat 2> /dev/null || : fi fi if grep ^tomcat: /etc/passwd 1>/dev/null 2>/dev/null; then echo User tomcat already exists, not adding user else if grep x:%{tcuid}: /etc/passwd 1>/dev/null 2>/dev/null; then echo UID %{tcuid} already exists, not adding user else %{_sbindir}/useradd -c "Tomcat" -u %{tcuid} -g tomcat \ -s /bin/sh -r -d %{homedir} tomcat 2> /dev/null || : fi fi Also - Here's a sampling of how JPackage assigns file ownership: # Directories with special permissions %attr(775,root,tomcat) %dir %{appdir} %attr(775,root,tomcat) %dir %{confdir} %attr(775,root,tomcat) %dir %{tempdir} %attr(775,root,tomcat) %dir %{workdir} %attr(755,tomcat,tomcat) %dir %{logdir} %attr(775,root,tomcat) %dir %{confdir}/Catalina %attr(775,root,tomcat) %dir %{confdir}/Catalina/localhost %attr(755,root,root) %{_bindir}/* %attr(755,root,root) %{bindir}/* %attr(755,root,root) %{_sysconfdir}/init.d/%{name} %attr(644,root,tomcat) %config(noreplace) %{confdir}/catalina.policy %attr(644,root,tomcat) %config(noreplace) %{confdir}/catalina.properties %attr(660,root,tomcat) %config(noreplace) %{confdir}/jk2.properties %attr(660,root,tomcat) %config(noreplace) %{confdir}/logging.properties %attr(660,root,tomcat) %config(noreplace) %{confdir}/tomcat-users.xml So if we converted our spec over to something similar to this, and then fix the uninstall part (Still looking into) I think we should have a pretty solid RPM. SNIP Cheers, - Ole