Date: Thu, 17 Jul 2014 23:07:39 +0200 From: Baptiste Daroussin <bapt@freebsd.org> To: Adrian Chadd <adrian@freebsd.org> Cc: Craig Rodrigues <rodrigc@freebsd.org>, ports <freebsd-ports@freebsd.org>, freebsd-doc@freebsd.org, freebsd-current Current <freebsd-current@freebsd.org>, Andreas Nilsson <andrnils@gmail.com>, Navdeep Parhar <nparhar@gmail.com> Subject: Re: HOWTO articles for migrating from Linux to FreeBSD, especially for pkg? Message-ID: <20140717210738.GE28314@ivaldir.etoilebsd.net> In-Reply-To: <CAJ-VmomejC3K7hy1DnwXncbY_H13U17gEpezhK5v%2B_KHNPHR=A@mail.gmail.com> References: <CAG=rPVcyqq2072%2BgF_X91BocxykJB6%2BU0cMhaNexxfVFpVqUbA@mail.gmail.com> <CAJ-Vmo=p6-7KCL8C09O4dPq04pitW5wDbtsDAyz-u4Qtr7rpRA@mail.gmail.com> <CAGZBXN8-Gq1=w8SBHCw26ZX4a29KHBx%2B4FV9XGK1HJiCOGuJ9A@mail.gmail.com> <CAJ-Vmo=8uAXqmX8D%2BoP%2B63dHWVKN6cn8wBH0HNsVmUciNRF1BA@mail.gmail.com> <53C82EC4.8060304@gmail.com> <CAPS9%2BSuswkJNuwhT=o%2B7sBQpbaN0-jhnRK5drugqZw54%2BqzgzA@mail.gmail.com> <20140717205445.GC28314@ivaldir.etoilebsd.net> <CAJ-VmomejC3K7hy1DnwXncbY_H13U17gEpezhK5v%2B_KHNPHR=A@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--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 <bapt@freebsd.org> 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 <nparhar@gmail.com> w= rote: > >> > >> > On 07/17/14 13:12, Adrian Chadd wrote: > >> > > On 17 July 2014 13:03, Alberto Mijares <amijaresp@gmail.com> wrote: > >> > >> On Thu, Jul 17, 2014 at 2:58 PM, Adrian Chadd <adrian@freebsd.org> > >> > 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_<xxx>_enable, right? >=20 imho this is obvious <xxx>_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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140717210738.GE28314>