From owner-freebsd-rc@FreeBSD.ORG Tue Feb 14 02:41:09 2006 Return-Path: X-Original-To: freebsd-rc@freebsd.org Delivered-To: freebsd-rc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4878816A420 for ; Tue, 14 Feb 2006 02:41:09 +0000 (GMT) (envelope-from marsgmiro@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id BAC4C43D48 for ; Tue, 14 Feb 2006 02:41:08 +0000 (GMT) (envelope-from marsgmiro@gmail.com) Received: by zproxy.gmail.com with SMTP id 12so1159488nzp for ; Mon, 13 Feb 2006 18:41:07 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=CRzYGAoVo5/jEDD3RXJ7wwaupDAnxOj+0wsa+Y0VswLZExSdJQ3TMf7qyyKYF7P3XsdBhNjuBunstcuoJpWqkM4iojmpB48SP1UlsGpGsBMFvMLcifMjW6HqgbhqtxHTfiFbjgqgw7nnSHCRhdZuFXYiGQa2qGLX39nLgI0Vd14= Received: by 10.36.140.18 with SMTP id n18mr4081277nzd; Mon, 13 Feb 2006 18:41:07 -0800 (PST) Received: by 10.36.72.7 with HTTP; Mon, 13 Feb 2006 18:41:07 -0800 (PST) Message-ID: <28edec3c0602131841w36860880nb7389de31e2e6946@mail.gmail.com> Date: Tue, 14 Feb 2006 10:41:07 +0800 From: "Mars G. Miro" To: Doug Barton In-Reply-To: <43F0D99D.4060405@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <28edec3c0602130130t35e1af55y63a5a8b90f1710e@mail.gmail.com> <43F0D99D.4060405@FreeBSD.org> Cc: freebsd-rc@freebsd.org Subject: Re: 6.1-prerelease, /etc/rc.d/localpkg, rc.subr and samba3 X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Feb 2006 02:41:09 -0000 On 2/14/06, Doug Barton wrote: > Mars G. Miro wrote: > > Hi there, > > > > Today I upgraded a 6.0Rp4 box to RELENG_6 w/c brings it to > > 6.1-PRERELEASE. This box has a jail w/c has samba (samba-3.0.21a,1) > > installed and after the usual build{world,kernel}, > > install{kernel,world}, mergemaster process, I found out that samba > > would not start during boot. I traced it to /etc/rc.d/localpkg. > > Reverting this to the 6.0Rp4 version works. I'm no rc guru but seems > > that 'find_local_scripts_{old|new}' in /etc/rc.subr doesnt actually > > find the local_startup rc scripts? > > The samba boot script is a new style rc.d script, so it will be found by > rc.subr, but won't be started unless you have samba_enable=3Dyes in > /etc/rc.conf.local (or rc.conf). > This is the most-recent samba3 and it has the new rc.d script. Of course I have that knob in my /etc/rc.conf: ... # Samba/Winbindd samba_enable=3D"YES" winbindd_enable=3D"YES" # set just for debugging purposes rc_debug=3D"YES" rc_info=3D"YES" ... root@jail:~# ps auxww USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND root 9152 0.0 0.1 3540 1144 ?? SsJ 4:21PM 0:00.11 /usr/sbin/syslogd -ss root 9205 0.0 0.2 19460 3704 ?? IsJ 4:21PM 0:00.01 /usr/sbin/sshd root 9212 0.0 0.1 4604 1324 ?? IsJ 4:21PM 0:00.16 /usr/sbin/cron= -s root 16398 0.0 0.2 32520 4100 ?? IsJ 10:32AM 0:00.02 sshd: mars [priv] (sshd) mars 16400 0.0 0.2 32472 4188 ?? SJ 10:32AM 0:00.02 sshd: mars@ttyp1 (sshd) mars 16401 0.0 0.1 8664 3128 p1 IsJ 10:32AM 0:00.01 -csh (csh) root 16402 0.0 0.1 18200 1600 p1 IJ 10:32AM 0:00.00 su -l root root 16403 0.0 0.2 8672 3144 p1 SJ 10:32AM 0:00.02 -su (csh) root 16596 0.0 0.1 4640 1116 p1 R+J 10:38AM 0:00.00 ps auxww Running the new localpkg rc: root@jail:~# /etc/rc.d/localpkg start /etc/rc.d/localpkg: DEBUG: run_rc_command: evaluating pkg_start(). Local package initialization:. Nothing happens: root@jail:~# ps auxww USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND root 9152 0.0 0.1 3540 1144 ?? SsJ 4:21PM 0:00.11 /usr/sbin/syslogd -ss root 9205 0.0 0.2 19460 3704 ?? IsJ 4:21PM 0:00.01 /usr/sbin/sshd root 9212 0.0 0.1 4604 1324 ?? SsJ 4:21PM 0:00.16 /usr/sbin/cron= -s root 16398 0.0 0.2 32520 4100 ?? IsJ 10:32AM 0:00.02 sshd: mars [priv] (sshd) mars 16400 0.0 0.2 32472 4188 ?? SJ 10:32AM 0:00.02 sshd: mars@ttyp1 (sshd) mars 16401 0.0 0.1 8664 3128 p1 IsJ 10:32AM 0:00.01 -csh (csh) root 16402 0.0 0.1 18200 1600 p1 IJ 10:32AM 0:00.00 su -l root root 16403 0.0 0.2 8672 3144 p1 SJ 10:32AM 0:00.02 -su (csh) root 16602 0.0 0.1 4640 1116 p1 R+J 10:38AM 0:00.00 ps auxww However, using the one from 6.0Rp4: root@jail:~# /home/backups/etc/rc.d/localpkg start /home/backups/etc/rc.d/localpkg: DEBUG: run_rc_command: evaluating pkg_star= t(). Local package initialization:/usr/local/etc/rc.d/samba.sh: DEBUG: checkyesno: samba_enable is set to YES. /usr/local/etc/rc.d/samba.sh: DEBUG: checkyesno: nmbd_enable is set to YES. /usr/local/etc/rc.d/samba.sh: DEBUG: run_rc_command: evaluating nmbd_precmd= (). Starting SAMBA: removing stale tdbs : /var/db/samba/connections.tdb /var/db/samba/messages.tdb /var/db/samba/sessionid.tdb /var/db/samba/unexpected.tdb /var/db/samba/brlock.tdb /var/db/samba/locking.tdb Starting nmbd. /usr/local/etc/rc.d/samba.sh: DEBUG: run_rc_command: _doit: /usr/local/sbin/nmbd -D -s /usr/local/etc/smb.conf /usr/local/etc/rc.d/samba.sh: DEBUG: checkyesno: smbd_enable is set to YES. /usr/local/etc/rc.d/samba.sh: DEBUG: run_rc_command: evaluating :(). Starting smbd. /usr/local/etc/rc.d/samba.sh: DEBUG: run_rc_command: _doit: /usr/local/sbin/smbd -D -s /usr/local/etc/smb.conf /usr/local/etc/rc.d/samba.sh: DEBUG: checkyesno: winbindd_enable is set to = YES. /usr/local/etc/rc.d/samba.sh: DEBUG: run_rc_command: evaluating :(). Starting winbindd. /usr/local/etc/rc.d/samba.sh: DEBUG: run_rc_command: _doit: /usr/local/sbin/winbindd -s /usr/local/etc/smb.conf . It runs: root@jail:~# ps auxww USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND root 16638 3.0 0.3 23040 6444 ?? SsJ 10:38AM 0:00.02 /usr/local/sbin/smbd -D -s /usr/local/etc/smb.conf root 16648 3.0 0.3 21048 5764 ?? SJ 10:38AM 0:00.03 /usr/local/sbin/winbindd -s /usr/local/etc/smb.conf root 9152 0.0 0.1 3540 1144 ?? SsJ 4:21PM 0:00.11 /usr/sbin/syslogd -ss root 9205 0.0 0.2 19460 3704 ?? IsJ 4:21PM 0:00.01 /usr/sbin/sshd root 9212 0.0 0.1 4604 1324 ?? SsJ 4:21PM 0:00.16 /usr/sbin/cron= -s root 16398 0.0 0.2 32520 4100 ?? IsJ 10:32AM 0:00.02 sshd: mars [priv] (sshd) mars 16400 0.0 0.2 32472 4188 ?? SJ 10:32AM 0:00.02 sshd: mars@ttyp1 (sshd) root 16629 0.0 0.2 18528 4172 ?? SsJ 10:38AM 0:00.01 /usr/local/sbin/nmbd -D -s /usr/local/etc/smb.conf root 16647 0.0 0.3 19632 5316 ?? SsJ 10:38AM 0:00.00 /usr/local/sbin/winbindd -s /usr/local/etc/smb.conf root 16649 0.0 0.3 23040 6428 ?? SJ 10:38AM 0:00.00 /usr/local/sbin/smbd -D -s /usr/local/etc/smb.conf mars 16401 0.0 0.1 8664 3128 p1 IsJ 10:32AM 0:00.01 -csh (csh) root 16402 0.0 0.1 18200 1600 p1 IJ 10:32AM 0:00.00 su -l root root 16403 0.0 0.2 8672 3144 p1 SJ 10:32AM 0:00.02 -su (csh) root 16650 0.0 0.1 4644 1120 p1 R+J 10:38AM 0:00.00 ps auxww root@jail:~# uname -a FreeBSD jail.XXXXX 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #0: Mon Feb 13 13:06:51 PHT 2006 root@XXXXX:/usr/obj/usr/src/sys/XXXX amd64 Thanks. > Doug > > -- > > This .signature sanitized for your protection > > cheers mars