From owner-freebsd-questions@FreeBSD.ORG Fri Dec 24 12:16:30 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 204AE106564A for ; Fri, 24 Dec 2010 12:16:30 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id A07868FC2A for ; Fri, 24 Dec 2010 12:16:29 +0000 (UTC) Received: by wwf26 with SMTP id 26so6707409wwf.31 for ; Fri, 24 Dec 2010 04:16:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:in-reply-to:references:x-mailer:mime-version :content-type:content-transfer-encoding; bh=ESiieKEeTZyhI982zsBsszoFZwRu/QmMojgzpbX1t4M=; b=NQ/7MrLHu6mOTYrMMmtFinHOiGVDmf0slsWSymOZbU7sYROGgTzZmbJtoTHj5FrKAU VYSuFQPKdpvByr2e1SyyzZzj/H0VDWTZH9R9SkZOX/bZAg81giT8kPRZerSHEgvIJrqP A/d5j9p+7SqX6wopyLK8Nq5jFwHx8iJXyQHFQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type:content-transfer-encoding; b=LppjqTPD9SoIlnSm1vAgA57c/9c+0mxID8ZF5Gra7cNZAWCjRydJ1YxetImE7nvxA3 e2nMRnDNh0XRAgvcfK08PVo2ZUOiJ/Ji8/DfhB60VpWtMvFy7Mg5ek+OPd2TaHW8YDXG 1dWTIGrQQv2bmttuyWoO68ReMfDPfDvZYVtos= Received: by 10.216.156.149 with SMTP id m21mr2218579wek.22.1293192988575; Fri, 24 Dec 2010 04:16:28 -0800 (PST) Received: from gumby.homeunix.com (87-194-105-247.bethere.co.uk [87.194.105.247]) by mx.google.com with ESMTPS id n11sm4266404wej.43.2010.12.24.04.16.26 (version=SSLv3 cipher=RC4-MD5); Fri, 24 Dec 2010 04:16:27 -0800 (PST) Date: Fri, 24 Dec 2010 12:16:25 +0000 From: RW To: freebsd-questions@freebsd.org Message-ID: <20101224121625.011c8fef@gumby.homeunix.com> In-Reply-To: <20101224092901.GB23384@admin.sibptus.tomsk.ru> References: <20101223172752.GA8539@admin.sibptus.tomsk.ru> <20101223201249.ea7648aa.freebsd@edvax.de> <20101223191443.GA24653@gizmo.acns.msu.edu> <20101223205456.21ddbe27.freebsd@edvax.de> <44zkrws0xx.fsf@be-well.ilk.org> <20101224033427.GD16472@admin.sibptus.tomsk.ru> <20101224083304.2458afe8@gumby.homeunix.com> <20101224092901.GB23384@admin.sibptus.tomsk.ru> X-Mailer: Claws Mail 3.7.8 (GTK+ 2.22.1; i386-portbld-freebsd8.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: rc.d and environment variables X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Dec 2010 12:16:30 -0000 On Fri, 24 Dec 2010 15:29:01 +0600 Victor Sudakov wrote: > RW wrote: > > > > > > > > > I'm not sure this will work. The initial question was about > > > > > how to obtain an environmental variable. If the rc.d script > > > > > of svnserve sources /etc/rc.conf and/or /etc/rc.conf.local, > > > > > it is okay, > > > > > > > > They do. rc.d scripts all start by sucking in rc.subr, which in > > > > turn pulls in the rc.conf files. > > > > > > So how do I make the /usr/local/etc/rc.d/svnserve script suck in > > > KRB5_KTNAME for the "svn" user from the rc.conf* files? > > > > Just export it from rc.conf > > If exported from rc.conf, it will affect all daemons. I need to set it > only for svnserve or for the svn user (which is equivalent in my > case). [ "$name" = "svnserve" ] && export KRB5_KTNAME="/home/svn/svn.keytab"