From owner-freebsd-ports Fri Jul 7 23:10: 5 2000 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 56B7737BB49 for ; Fri, 7 Jul 2000 23:10:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id XAA11757; Fri, 7 Jul 2000 23:10:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: by hub.freebsd.org (Postfix, from userid 32767) id 9640A37B76F; Fri, 7 Jul 2000 23:03:51 -0700 (PDT) Message-Id: <20000708060351.9640A37B76F@hub.freebsd.org> Date: Fri, 7 Jul 2000 23:03:51 -0700 (PDT) From: dan@mostgraveconcern.com To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: ports/19780: SETI@home port startup script fails Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 19780 >Category: ports >Synopsis: SETI@home port startup script fails >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Jul 07 23:10:01 PDT 2000 >Closed-Date: >Last-Modified: >Originator: Dan O'Connor >Release: 4.0-STABLE >Organization: >Environment: FreeBSD pandora.mostgraveconcern.com 4.0-STABLE FreeBSD 4.0-STABLE #36: Thu Jul 6 06:25:52 PDT 2000 root@pandora.mostgraveconcern.com:/usr/src/sys/compile/PANDORA i386 >Description: Installation and registration for the SETI@home port (setiathome-2.4) work OK, but the provided startup script /usr/local/etc/rc.d/setiathome.sh does not work properly. When the script is run, you get a new shell prompt with user set to 'nobody', and setiathome doesn't start. >How-To-Repeat: Attempt to start SETI@home: # /usr/local/etc/rc.d/setiathome.sh start >Fix: The 'su' command in the /usr/local/etc/rc.d/setiathome.sh script is missing the '-f' option: su -m ${seti_user} -c \ "(cd ${seti_wrkdir}/${i} && exec ${PREFIX}/bin/setiathome -email -nice ${seti_nice} >/dev/null &)" The script works fine if the '-f' switch is added to the above line: su -fm ${seti_user} -c \ "(cd ${seti_wrkdir}/${i} && exec ${PREFIX}/bin/setiathome -email -nice ${seti_nice} >/dev/null &)" It took me a long time to figure this one out. A patch by the port maintainer would be much appreciated, and would save new SETI@home users much frustration... >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message