From owner-freebsd-doc@FreeBSD.ORG Thu Jul 17 20:54:52 2014 Return-Path: Delivered-To: freebsd-doc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 01CC3551; Thu, 17 Jul 2014 20:54:52 +0000 (UTC) Received: from mail-wi0-x236.google.com (mail-wi0-x236.google.com [IPv6:2a00:1450:400c:c05::236]) (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 E6248208D; Thu, 17 Jul 2014 20:54:50 +0000 (UTC) Received: by mail-wi0-f182.google.com with SMTP id d1so3484172wiv.9 for ; Thu, 17 Jul 2014 13:54:48 -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=2ZIWeSeWji9V69u9J6zNIz4POmZCqG+UI7TjdfESOl8=; b=Y9x3MXhO4fvUWqj1IWH+MVKRa2RSlmlrleHeZrBADWc3MQxxx5sKO5OadP4qUMk9ID ugZMiSW0ir4ymauB9ssvODDatQVMzq6WmchYPg76omy/6O0TFDTYlojnvaCzoIHO85Z4 42M5vwppqe9W+TAj+Rh1mMWs0fGy+ASNnIoU0ivJFeGlHMfpgJliKGcO3eDt3Zuvs9XT uqQzEL9/M44gNxAPL64lzOYtAyHGX9vHRh2GbevlOdms2F1jc4M8RGnFW67bhus/bX0a E8pMFqeuoaqEPyZ8SQTbayEARJizIhtsPhqsjDUknZlHM0KhiUBZpcv+11uULpMWfrSL zdPw== X-Received: by 10.181.13.44 with SMTP id ev12mr26284322wid.57.1405630488617; Thu, 17 Jul 2014 13:54:48 -0700 (PDT) Received: from ivaldir.etoilebsd.net ([2001:41d0:8:db4c::1]) by mx.google.com with ESMTPSA id q11sm24901985wib.14.2014.07.17.13.54.47 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 17 Jul 2014 13:54:47 -0700 (PDT) Sender: Baptiste Daroussin Date: Thu, 17 Jul 2014 22:54:45 +0200 From: Baptiste Daroussin To: Andreas Nilsson Subject: Re: HOWTO articles for migrating from Linux to FreeBSD, especially for pkg? Message-ID: <20140717205445.GC28314@ivaldir.etoilebsd.net> References: <53C82EC4.8060304@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="UPT3ojh+0CqEDtpF" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Cc: Craig Rodrigues , Adrian Chadd , ports , freebsd-doc@freebsd.org, freebsd-current Current , 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 20:54:52 -0000 --UPT3ojh+0CqEDtpF Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jul 17, 2014 at 10:21:17PM +0200, Andreas Nilsson wrote: > On Thu, Jul 17, 2014 at 10:15 PM, Navdeep Parhar wrot= e: >=20 > > 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? > > >=20 > They sure are. >=20 > 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"YE= S" is not user friendly) we have service -l that list the services, maybe a servi= ce ${service} on that create /etc/rc.conf.d/${service} with ${service}_enable= =3D"YES" in it and service ${service} off to remove it maybe service -l could also be extended to show the current status (maybe w= ith a -v switch) but for sure having the service off by default is a good idea :) regards, Bapt --UPT3ojh+0CqEDtpF Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlPIOBUACgkQ8kTtMUmk6EybGACfXb3srUWCWCIGIzgVeXxxoq65 OCsAoMAUbudwOFR5eiLnU+W+sz/Gd5Sh =/hSI -----END PGP SIGNATURE----- --UPT3ojh+0CqEDtpF--