From owner-freebsd-doc@FreeBSD.ORG Thu Jul 17 21:07:45 2014 Return-Path: Delivered-To: freebsd-doc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3BEC0E16; Thu, 17 Jul 2014 21:07:45 +0000 (UTC) Received: from mail-we0-x231.google.com (mail-we0-x231.google.com [IPv6:2a00:1450:400c:c03::231]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2E39821A6; Thu, 17 Jul 2014 21:07:43 +0000 (UTC) Received: by mail-we0-f177.google.com with SMTP id w62so3634674wes.8 for ; Thu, 17 Jul 2014 14:07:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=3zws4rD1JOMBcK02uNV3HsYaEBYKaIhOVHGucI3CDcA=; b=zzuWFbWBmJUoYnH2TF/ZcVYxgoD3/pABq1/+M/ra1mXtYaQpFQqnnD5+OGCJTOHQI3 ZQ4kJeGY30xcNm6OLYw3UAEL+oNlxjDiigsNNTn37jGh1XiJfuF+adyLWaYp53N1sIec f+J9ckfUGD9RZ5BqGBeP5Y9NuvyPTs0jm+shqEGiH2T87BzzRhlHFX3ECeFChg7hG7ci IDyAykXics0TJb978cxO1+4hQa1R42bFl7weQRfUuwDr4xqWPLJvasRVWJXoJxTKmnEp EgzjFpxtxeXtXDb+nJ4aIAYx3sH1qJfK8FPyis1oxcsiE3h6kPdKe6/izsNbbd3HnkQp 1nqA== X-Received: by 10.180.20.15 with SMTP id j15mr26122859wie.60.1405631262448; Thu, 17 Jul 2014 14:07:42 -0700 (PDT) Received: from ivaldir.etoilebsd.net ([2001:41d0:8:db4c::1]) by mx.google.com with ESMTPSA id o9sm72458028wib.22.2014.07.17.14.07.40 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 17 Jul 2014 14:07:41 -0700 (PDT) Sender: Baptiste Daroussin Date: Thu, 17 Jul 2014 23:07:39 +0200 From: Baptiste Daroussin To: Adrian Chadd Subject: Re: HOWTO articles for migrating from Linux to FreeBSD, especially for pkg? Message-ID: <20140717210738.GE28314@ivaldir.etoilebsd.net> References: <53C82EC4.8060304@gmail.com> <20140717205445.GC28314@ivaldir.etoilebsd.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="idY8LE8SD6/8DnRI" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Cc: Craig Rodrigues , ports , freebsd-doc@freebsd.org, freebsd-current Current , Andreas Nilsson , Navdeep Parhar X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Jul 2014 21:07:45 -0000 --idY8LE8SD6/8DnRI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jul 17, 2014 at 01:57:52PM -0700, Adrian Chadd wrote: > On 17 July 2014 13:54, Baptiste Daroussin wrote: > > On Thu, Jul 17, 2014 at 10:21:17PM +0200, Andreas Nilsson wrote: > >> On Thu, Jul 17, 2014 at 10:15 PM, Navdeep Parhar w= rote: > >> > >> > On 07/17/14 13:12, Adrian Chadd wrote: > >> > > On 17 July 2014 13:03, Alberto Mijares wrote: > >> > >> On Thu, Jul 17, 2014 at 2:58 PM, Adrian Chadd > >> > wrote: > >> > >>> Hi! > >> > >>> > >> > >>> 3) The binary packages need to work out of the box > >> > >>> 4) .. which means, when you do things like pkg install apache, it > >> > >>> can't just be installed and not be enabled, because that's a bit= of a > >> > >>> problem; > >> > >> > >> > >> > >> > >> No. Please NEVER do that! The user must be able to edit the files= and > >> > >> start the service by himself. > >> > > > >> > > Cool, so what's the single line command needed to type in to start= a > >> > > given package service? > >> > > >> > Aren't sysrc(8) and service(8) for this kind of stuff? > >> > > >> > >> They sure are. > >> > >> Well, pkg install $service ; sysrc ${service}_enable=3D"YES" would do. > >> Although some services have different names than the packge, which is = sort > >> of annoying. > > > > Maybe service needs to be extended (seriously sysrc ${service}_enable= =3D"YES" is > > not user friendly) we have service -l that list the services, maybe a s= ervice > > ${service} on that create /etc/rc.conf.d/${service} with ${service}_ena= ble=3D"YES" > > in it and service ${service} off to remove it > > > > maybe service -l could also be extended to show the current status (may= be with a > > -v switch) > > > > but for sure having the service off by default is a good idea :) >=20 > Yeah, maybe having it populate an entry of service_enable=3D"NO" for now . then you need to extend rcng to support /usr/local/etc/rc.conf.d so the pac= kages can install them without touching base :) and we will need to wait for all supported FreeBSD version to have the said modification) >=20 > It's even more unclear-ish - it's not obvious which options control > services and which ones are configuration things. We don't call it > service__enable, right? >=20 imho this is obvious _enable =3D=3D control service. regards, Bapt --idY8LE8SD6/8DnRI Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlPIOxoACgkQ8kTtMUmk6EwhrACdE6ef7NyfN2uu1O6NBfpmE9Q7 z6UAnj/osU0iqaiBfJE2KME+Jk50zw7t =Di1K -----END PGP SIGNATURE----- --idY8LE8SD6/8DnRI--