From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Jul 3 08:30:00 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 88F2AAC1 for ; Wed, 3 Jul 2013 08:30:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 6B88413A0 for ; Wed, 3 Jul 2013 08:30: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 r638U0AW087670 for ; Wed, 3 Jul 2013 08:30:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r638U0ra087669; Wed, 3 Jul 2013 08:30:00 GMT (envelope-from gnats) Resent-Date: Wed, 3 Jul 2013 08:30:00 GMT Resent-Message-Id: <201307030830.r638U0ra087669@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, Ben Woods Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id DE297875 for ; Wed, 3 Jul 2013 08:23:24 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121]) by mx1.freebsd.org (Postfix) with ESMTP id D0E591365 for ; Wed, 3 Jul 2013 08:23:24 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r638NO5h082480 for ; Wed, 3 Jul 2013 08:23:24 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r638NO6G082476; Wed, 3 Jul 2013 08:23:24 GMT (envelope-from nobody) Message-Id: <201307030823.r638NO6G082476@oldred.freebsd.org> Date: Wed, 3 Jul 2013 08:23:24 GMT From: Ben Woods To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/180226: net/samba4 port rc script syntax errors ("samba" vs "smbd") 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: Wed, 03 Jul 2013 08:30:00 -0000 >Number: 180226 >Category: ports >Synopsis: net/samba4 port rc script syntax errors ("samba" vs "smbd") >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: Wed Jul 03 08:30:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Ben Woods >Release: FreeBSD 9.1-RELEASE-p4 >Organization: >Environment: FreeBSD sparticus.home.local 9.1-RELEASE-p4 FreeBSD 9.1-RELEASE-p4 #0: Mon Jun 17 11:42:37 UTC 2013 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 >Description: Samba4 daemon fails to start via the rc script after installing from ports. This is caused by the following errors in the files/samba4.in rc script: - incorrect executable file: /usr/local/sbin/samba should be /usr/local/sbin/smbd - incorrectly PID file: samba.pid should be smbd.pid. This is confirmed by the following text found in /var/log/samba4/log.%m: [2013/07/03 15:24:42, 0] ../source4/smbd/server.c:461(binary_smbd_main) At this time the 'samba' binary should only be used for either: 'server role = active directory domain controller' or to access the ntvfs file server with 'server services = +smb' or the rpc proxy with 'dcerpc endpointservers = remote' You should start smbd/nmbd/winbindd instead for domain member and standalone file server tasks >How-To-Repeat: 1. Install net/samba4-4.0.4_1 from ports or packages 2. Add samba4_enable="YES" to /etc/rc.conf 3. Run # service samba4 start 4. Review running status via # service samba4 status 5. Review log file at /var/log/samba4/log.%m >Fix: Modify rc script (files/samba4.in) in port net/samba4: 42c42 < command="%%PREFIX%%/sbin/${name}" --- > command="%%PREFIX%%/sbin/smbd" 44c44 < pidfile="%%SAMBA4_RUNDIR%%/samba.pid" --- > pidfile="%%SAMBA4_RUNDIR%%/smbd.pid" >Release-Note: >Audit-Trail: >Unformatted: