Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 34775 invoked from network); 28 Aug 2008 08:34:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Aug 2008 08:34:04 -0000 Received: (qmail 32331 invoked by uid 500); 28 Aug 2008 08:33:53 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 32314 invoked by uid 500); 28 Aug 2008 08:33:53 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 32303 invoked by uid 99); 28 Aug 2008 08:33:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Aug 2008 01:33:53 -0700 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of patrik.haas@sap.com designates 155.56.68.140 as permitted sender) Received: from [155.56.68.140] (HELO smtpde03.sap-ag.de) (155.56.68.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Aug 2008 08:32:56 +0000 Received: from mail.sap.corp by smtpde03.sap-ag.de (26) with ESMTP id m7S8PtaK024068 for ; Thu, 28 Aug 2008 10:25:55 +0200 (MEST) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Thu, 28 Aug 2008 10:25:53 +0200 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Apache 1.3.41 on SunSolaris 10: htppd -F returns setsid error if started by a controlprocess Thread-Index: AckI3QECC2Oic8/sRu6WFttPQxrz2A== From: "Haas, Patrik" To: X-OriginalArrivalTime: 28 Aug 2008 08:25:53.0913 (UTC) FILETIME=[AFF24E90:01C908E7] X-Scanner: Virus Scanner virwal01 X-SAP: out X-Virus-Checked: Checked by ClamAV on apache.org Subject: [users@httpd] Apache 1.3.41 on SunSolaris 10: htppd -F returns setsid error if started by a controlprocess Hi folks I currently have a problem with Apache 1.3.41 running on SunSolaris 10. We have to use=20 the version 1.3.41 because of a dependency to a third party product which doesn't support=20 Apache 2.0 and higher. What I want to do: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D I want to start/stop the apache (httpd) by a program called 'sapcontrol' which is part of a SAP Installation. Codeline, how httpd is being called: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D httpd -F -f /usr/sap/HAP/SYS/global/pa/conf/httpd.conf My problem: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Although 'sapcontrol' calls the httpd with the option "-F", which causes the mother process (sapcontrol) to=20 not fork&detach, the httpd process doesn't start. Instead I find in the logfile following error message: setsid: Not owner wspa.sapHAP_DXPPW00: setsid failed setsid() failed probably because you aren't running under a process management tool like daemontools (wspa.sapHAP_DXPPW00 is a link pointing to httpd) What I already tried: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D - start httpd with the option "-X" (debug mode) but without "-F": httpd was able to be started and stopped by sapcontrol and was running properly; but in the debug mode it doesen't fork (but we need the fork feature) - httpd of Apache 2.2.9 with the command line option "-DNO_DETACH" behaves exactly how I want it to: does not=20 detach and forks itself and could be started and stopped by sapcontrol - the option "-DNO_DETACH" has no affect on httpd of Apache 1.3.41. httpd started but forked of it's mother process (sapcontrol) what I don't want - the option "-DFOREGROUND" in Apache 1.3.41: the same affect as the option "-DNO_DETACH" - the option "-F" combined with the option "-DNO_DETACH" in Apache 1.3.41: the same error message as started with the option "-F" only: setsid: Not owner wspa.sapHAP_DXPPW00: setsid failed setsid() failed probably because you aren't running under a process management tool like daemontools - the option "-F" combined with the option "-DFOREGROUND" in Apache 1.3.41: the same error message as started with the option "-F" only: setsid: Not owner wspa.sapHAP_DXPPW00: setsid failed =20 I was also searching the web and scanning this mailing list but I didn't found an entry with a similar problem neither a hint how to handle this problem. =20 Does anybody of you may know how to solve my problem? Thanks in advance for your help! Best regards and thanks for your time! Patrik --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org