看板 FB_current 關於我們 聯絡資訊
--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 <nparhar@gmail.com> wrot= e: >=20 > > 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? > > >=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--