Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Jul 2014 22:23:00 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        freebsd-doc@freebsd.org
Subject:   Re: HOWTO articles for migrating from Linux to FreeBSD, especially for pkg?
Message-ID:  <53C83EB4.2060202@infracaninophile.co.uk>
In-Reply-To: <CAPS9%2BSuswkJNuwhT=o%2B7sBQpbaN0-jhnRK5drugqZw54%2BqzgzA@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>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--bCbX6de2FahsmorKEk6rRshjT4NRLplqG
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 17/07/2014 21:21, Andreas Nilsson wrote:
>>>> No. Please NEVER do that! The user must be able to edit the files an=
d
>>>> > >> start the service by himself.
>>> > >
>>> > > Cool, so what's the single line command needed to type in to star=
t a
>>> > > given package service?
>> >
>> > Aren't sysrc(8) and service(8) for this kind of stuff?
>> >
> 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 s=
ort
> of annoying.
>=20
> I wouldn't mind though if pkg via dialog or some such mechanism asked i=
f
> wanted it enabled. Or via pkg-message told me howto enable it.

I quite like the idea of having eg, an apache-config package, which when
installed sets up httpd.conf in a way that allows adding
phpMyAdmin-config or other similar application config packages on top.
And enables everything in rc.conf, if not firing up apache on install[*].=


*But* this should be separate from packages that install the software so
if you want to write your own configuration you don't have to go through
and unpick the pre-canned setup.

Sometimes you just need to sling something on a box and have it working
ASAP.

	Cheers,

	Matthew

[*] Well, actually it go for nginx + php-fpm + webapp rather than
apache, but the principle is the same.

--=20
Dr Matthew J Seaman MA, D.Phil.

PGP: http://www.infracaninophile.co.uk/pgpkey
JID: matthew@infracaninophile.co.uk


--bCbX6de2FahsmorKEk6rRshjT4NRLplqG
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.20 (Darwin)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQJ8BAEBCgBmBQJTyD68XxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC
QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkATtwgQAKvWygAccG+npxJjg9htkzho
P0/lyQwwSmewPbmz+1tN7ZzmRyjCNA1WVhO6bywMr5Vtbv30ve5fpXV2FM+82nVz
yjg2y5zhwQXE4MAzhqiEbYv2EqpI8w4SPfGzZw/XJcvc7xXPXaYyB7buOHwWD2AS
vIOxWHyL8tEvEbe4Xat64VBfav4dBlNO7fMwdcUtY5ckPTiD9U1yilyGdAyVOiZ/
rvq/VWk+67lXxKLLzV5xBIrXxG46NywV1ddyGBkNreTERr2+IQLc2OnWSyi4um9j
88UaOdi4O6kVmfq6R1nA8axP2GYAAj6rFXGGAHDiLRaSNhEMtkdWTT4IoQPn4yn4
Z4sRY6Ckgy8dsB/H86+dL2YBPDTtiLPuYnrUG7OTHVm5WqcIzE3QYMNa6Pi+rJIj
MlYn4+oqHlk6L35VeanaaDdQDNB8HlpM+NVjF7f8I4TnYh2XP3yBtjBK/3ZT92YN
FRe+QxNQzDQn24xNTl6V9r1I+JJwMWJc6VNwZDj4BXxJOmJL5HsPnNAlNOyasfSl
RNbgFW45V5YRq1F+YMQkxoQgYQj6sd2XBXdpn+Qo+4R9ne9kiLrPlXqV9YsN3zYq
VDangTrOyPk165Lgb3yrb9xBkhsPbdNq5kDxN/YNMe47AiMUzJDVDbH8ZxqXUiWy
8xvKMORlZscKaZDY8N2/
=9s7o
-----END PGP SIGNATURE-----

--bCbX6de2FahsmorKEk6rRshjT4NRLplqG--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53C83EB4.2060202>