From owner-freebsd-rc@FreeBSD.ORG Mon May 23 11:01:58 2005 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 3AC3D16A421 for ; Mon, 23 May 2005 11:01:58 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 101B043D48 for ; Mon, 23 May 2005 11:01:58 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j4NB1vMH004138 for ; Mon, 23 May 2005 11:01:57 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j4NB1uMU004132 for freebsd-rc@freebsd.org; Mon, 23 May 2005 11:01:56 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 23 May 2005 11:01:56 GMT Message-Id: <200505231101.j4NB1uMU004132@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: freebsd-rc@FreeBSD.org Cc: Subject: Current problem reports assigned to you 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: Mon, 23 May 2005 11:01:58 -0000 Current FreeBSD problem reports Critical problems Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- a [2004/03/09] kern/63954 rc devfs loses permissions o [2005/02/10] conf/77340 rc awk used in /etc/rc.d/nsswitch when not a 2 problems total. Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2003/08/29] conf/56144 rc [PATCH] /etc/rc.d/ipmon, /etc/rc.d/ipfilt o [2004/06/30] conf/68525 rc Loader's verbose boot mode has rc.d/local o [2004/07/07] conf/68745 rc /etc/rc.d/devfs runs after ntpd so links o [2005/04/22] conf/80244 rc [PATCH] rc.conf + rc.d/jail should enable 4 problems total. From owner-freebsd-rc@FreeBSD.ORG Tue May 24 12:04:42 2005 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 6012916A41C; Tue, 24 May 2005 12:04:42 +0000 (GMT) (envelope-from swieten@itsef.com) Received: from postduif.itsef.com (ooievaar.itsef.com [62.58.92.161]) by mx1.FreeBSD.org (Postfix) with ESMTP id B6D4143D1D; Tue, 24 May 2005 12:04:41 +0000 (GMT) (envelope-from swieten@itsef.com) Received: by postduif.itsef.com (Postfix, from userid 65534) id A6FCD3EA40; Tue, 24 May 2005 14:04:39 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by postduif.itsef.com (Postfix) with ESMTP id 86F113EA40; Tue, 24 May 2005 14:04:38 +0200 (CEST) Received: from [192.168.101.215] (pcs37345.itsef.com [192.168.101.215]) by postduif.itsef.com (Postfix) with ESMTP id 8E1AE38C7C; Tue, 24 May 2005 14:04:36 +0200 (CEST) Message-ID: <42931854.1010804@itsef.com> Date: Tue, 24 May 2005 14:04:36 +0200 From: Peter van Swieten User-Agent: Mozilla Thunderbird 1.0 (X11/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-rc@freebsd.org, freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-ITSEF-Virus-Scanned: by AMaViS snapshot-20020531 X-Spam-Checker-Version: SpamAssassin 2.64 (2004-01-11) on postduif.itsef.com X-Spam-Level: X-Spam-Status: No, hits=-4.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.64 Cc: Subject: Strange behaviour of my script within /etc/rc.d 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, 24 May 2005 12:04:42 -0000 Hi, While trying to get my script within the /etc/rc.d tree operational I ran into some strange behaviour. I intended to start a vncserver as part of the boot process. I build the script based on several existing scripts (a.o. the apache script). The script works as expected when run from the command line in a operational FreeBSD system. During boot however it does not. Probem description: To be more specific it looks like the construction with the default value of a variable defined in the script and possibly being overridden in rc.conf DOES NOT WORK WHILE BOOTING. Note that since this is my first rc.d script, I might as well be doing something wrong, nevertheless the operation of the script works different in the two modes. Remark: I realize that there is a separate mailing list for rc.d things. The website for it however does not show any messages (but then maybe there are none). For this reason I post this message to both the general questions and the rc mailing list. Some details: ----------------------------------------------------------------------------------------------------------------- I recently installed this system from the 5.3 ISO. As far as I know nothing was changed to the rc.d part. uname -a output: FreeBSD peter-test-vm1.itsef.com 5.3-RELEASE FreeBSD 5.3-RELEASE #0: Fri Nov 5 04:19:18 UTC 2004 root@harlow.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 ----------------------------------------------------------------------------------------------------------------- rc.conf: ... # To start vncserver on startup: vncserver_enable="YES" vncserver_user="swieten" vncserver_display=":0" ... ----------------------------------------------------------------------------------------------------------------- my script: #!/bin/sh # PROVIDE: vncserver # This scripts starts vncserver running as user [vncserver_user] at [vncserver_display] # Author: PvSwieten # Define these vncserver_* variables in one of these files: # /etc/rc.conf # /etc/rc.conf.local # # DO NOT CHANGE THESE DEFAULT VALUES HERE # vncserver_enable="NO" vncserver_user="root" vncserver_display=":0" . /etc/rc.subr name="vncserver" rcvar=`set_rcvar` start_cmd="vncserver_start" stop_cmd="vncserver_stop" vncserver_start() { su -l ${vncserver_user} -c "/usr/local/bin/vncserver -geometry 1152x864 $vncserver_display" } vncserver_stop() { su -l ${vncserver_user} -c "/usr/local/bin/vncserver -kill ${vncserver_display}" } load_rc_config $name run_rc_command "$1" ----------------------------------------------------------------------------------------------------------------- -- -------------------------------------------------------- Peter van Swieten Tel +31 15 2692533 TNO-ITSEF BV Fax +31 15 2692555 Delftechpark 1 http://www.itsef.com 2628 XJ Delft swieten@itsef.com The Netherlands From owner-freebsd-rc@FreeBSD.ORG Wed May 25 19:44:06 2005 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 593B616A41C for ; Wed, 25 May 2005 19:44:06 +0000 (GMT) (envelope-from dougb@FreeBSD.org) Received: from mail1.fluidhosting.com (mail1.fluidhosting.com [66.150.201.101]) by mx1.FreeBSD.org (Postfix) with SMTP id DFB9F43D1F for ; Wed, 25 May 2005 19:44:05 +0000 (GMT) (envelope-from dougb@FreeBSD.org) Received: (qmail 69620 invoked by uid 399); 25 May 2005 19:43:59 -0000 Received: from unknown (HELO ?69.175.229.248?) (dougb@dougbarton.net@69.175.229.248) by mail1.fluidhosting.com with SMTP; 25 May 2005 19:43:59 -0000 Message-ID: <4294D57B.4050207@FreeBSD.org> Date: Wed, 25 May 2005 12:43:55 -0700 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050326) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-rc@FreeBSD.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: [Fwd: cvs commit: src/etc rc.subr] 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: Wed, 25 May 2005 19:44:06 -0000 Was this commit coordinated with anyone? Will it cause problems with keeping in sync with NetBSD? Doug -------- Original Message -------- Subject: cvs commit: src/etc rc.subr Date: Sun, 22 May 2005 16:22:23 +0000 (UTC) From: Jens Schweikhardt To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org schweikh 2005-05-22 16:22:23 UTC FreeBSD src repository Modified files: etc rc.subr Log: Style: mostly tabs vs blanks, and semicolon placement. Revision Changes Path 1.34 +26 -26 src/etc/rc.subr http://www.FreeBSD.org/cgi/cvsweb.cgi/src/etc/rc.subr.diff?&r1=1.33&r2=1.34&f=h -- This .signature sanitized for your protection