From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Sep 22 12:10:01 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id E0397C0B for ; Sun, 22 Sep 2013 12:10:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id BF45F2B8A for ; Sun, 22 Sep 2013 12:10:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r8MCA0PC046260 for ; Sun, 22 Sep 2013 12:10:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r8MCA0KU046251; Sun, 22 Sep 2013 12:10:00 GMT (envelope-from gnats) Resent-Date: Sun, 22 Sep 2013 12:10:00 GMT Resent-Message-Id: <201309221210.r8MCA0KU046251@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Alex Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id ADE94C06 for ; Sun, 22 Sep 2013 12:08:32 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 9CCB62B85 for ; Sun, 22 Sep 2013 12:08:32 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r8MC8VH3039094 for ; Sun, 22 Sep 2013 12:08:31 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r8MC8VVv039089; Sun, 22 Sep 2013 12:08:31 GMT (envelope-from nobody) Message-Id: <201309221208.r8MC8VVv039089@oldred.freebsd.org> Date: Sun, 22 Sep 2013 12:08:31 GMT From: Alex To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/182294: sysutils/fsc not forked to background at start X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Sep 2013 12:10:01 -0000 >Number: 182294 >Category: ports >Synopsis: sysutils/fsc not forked to background at start >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Sep 22 12:10:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Alex >Release: 9.2-RC4 >Organization: >Environment: FreeBSD xxx 9.2-RC4 FreeBSD 9.2-RC4 #0 r255465: Wed Sep 11 09:29:50 UTC 2013 root@bake.isc.freebsd.org:/usr/obj/usr/src/sys/GENERIC i386 >Description: root@:/home/test # pkg inf fsc fsc-1.0.1_2 root@:/home/test # cat /usr/local/etc/fscd.conf sshd root@:/home/test # service fscd start Starting fscd. sshd is running as pid 1474. ^Cfscd: pidfile_remove: Bad file descriptor /usr/local/etc/rc.d/fscd: WARNING: failed to start fscd On startup system will waiting when fscd going to background while user don't hit Ctrl+C >How-To-Repeat: Install sysutils/fsc from ports (current version 1.0.1_2). Same results on 9.1-RELEASE and 10.0-ALPHA1 >Fix: Dirty workaround: --- /usr/local/etc/rc.d/fscd 2013-09-22 15:50:03.000000000 +0600 +++ /usr/local/etc/rc.d/fscd 2013-09-22 16:15:57.000000000 +0600 @@ -13,8 +13,19 @@ . /etc/rc.subr name="fscd" +rcvar="fscd_enable" +load_rc_config $name +: ${fscd_enable="NO"} + command="/usr/local/sbin/${name}" pidfile="/var/run/${name}.pid" +required_files="/usr/local/etc/$name.conf" + +start_cmd=fscd_start + +fscd_start() +{ + /usr/sbin/daemon -cf ${command} +} -load_rc_config $name run_rc_command "$1" >Release-Note: >Audit-Trail: >Unformatted: