From owner-freebsd-doc@FreeBSD.ORG Thu Jul 17 20:57:54 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 303359DA; Thu, 17 Jul 2014 20:57:54 +0000 (UTC) Received: from mail-qg0-x233.google.com (mail-qg0-x233.google.com [IPv6:2607:f8b0:400d:c04::233]) (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 9A6E320C9; Thu, 17 Jul 2014 20:57:53 +0000 (UTC) Received: by mail-qg0-f51.google.com with SMTP id a108so2493825qge.10 for ; Thu, 17 Jul 2014 13:57:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=j8qQPvBAZm8h52Q2Jog21x/rIFiLQ8v/JdTwr8kqoug=; b=F1Ve7SmAaDqsU2JxoSqD00mk+hPRCd2XCNQGAC9AaIgHpJEFWjTV0yIH8t6jzAJcZ0 W3lWl4qpSjM2M8BtVn5famQMblkwEnf6einfhLRcSIJRYE+Df6ex5EuLH7K11HM/qEEc g2YZLeSncTcIgvVyy1ZNwLjCQgny9ge5aLxSCj6VbgYnx3/UVSUyst+Z1NOU7qfvrsx7 scsCYu5MySPel9W1MCzkVmap/3dZ8fU9wmWKxSSQ7RSLMswofeL0By3IF3FSy1mNnBPi S/ZbDN9phkdLJ33QznsLfe2qovxO/yQ5PIjZavR+VMg4VunsvxEPu+GEK3Bj9OL5cBeA 5V3w== MIME-Version: 1.0 X-Received: by 10.140.39.164 with SMTP id v33mr59086553qgv.99.1405630672667; Thu, 17 Jul 2014 13:57:52 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.224.202.193 with HTTP; Thu, 17 Jul 2014 13:57:52 -0700 (PDT) In-Reply-To: <20140717205445.GC28314@ivaldir.etoilebsd.net> References: <53C82EC4.8060304@gmail.com> <20140717205445.GC28314@ivaldir.etoilebsd.net> Date: Thu, 17 Jul 2014 13:57:52 -0700 X-Google-Sender-Auth: tFGoe2H9NjRJIzv4nFRer8J7XMY Message-ID: Subject: Re: HOWTO articles for migrating from Linux to FreeBSD, especially for pkg? From: Adrian Chadd To: Baptiste Daroussin Content-Type: text/plain; charset=UTF-8 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 20:57:54 -0000 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 wrote: >> >> > 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="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="YES" is > not user friendly) we have service -l that list the services, maybe a service > ${service} on that create /etc/rc.conf.d/${service} with ${service}_enable="YES" > in it and service ${service} off to remove it > > maybe service -l could also be extended to show the current status (maybe with a > -v switch) > > but for sure having the service off by default is a good idea :) Yeah, maybe having it populate an entry of service_enable="NO" for now . 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? -a