Date: Sat, 20 Jul 2013 13:53:41 +0100 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: freebsd-questions@freebsd.org Subject: Re: HOWTO monitor changes in installed packages within jails? Message-ID: <51EA8855.7070109@infracaninophile.co.uk> In-Reply-To: <DB2E1C6E-E44B-4ED9-BD3D-5ED9BEBF1357@odo.in-berlin.de> References: <DB2E1C6E-E44B-4ED9-BD3D-5ED9BEBF1357@odo.in-berlin.de>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) ------enig2EMWEAXMRBMTLDOVLKIOG Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 20/07/2013 12:09, Michael Grimm wrote: > I did migrate to pkgng some month ago, and ever since I am curious > how to monitor changes in installed packages within jails. I am > looking for a functionality/port that works like 490.status- > pkg-changes for my host. >=20 > Question: is there any functionality within the periodic system or a > port that I might have missed to find? You can't just run 490.status-pkg-changes directly in your jail? Try this patch: lucid-nonsense:/tmp:% diff -u 490.status-pkg-changes{.orig,} --- 490.status-pkg-changes.orig 2013-07-20 13:43:44.306303775 +0100 +++ 490.status-pkg-changes 2013-07-20 13:44:42.055327506 +0100 @@ -10,7 +10,7 @@ case "$daily_status_pkg_changes_enable" in [Yy][Ee][Ss]) - pkgcmd=3D/usr/local/sbin/pkg + pkgcmd=3D/usr/local/sbin/pkg $daily_status_pkg_changes_flags echo echo 'Changes in installed packages:' Then add something like the following to /etc/periodic.conf: daily_status_pkg_changes_flags=3D'-j jailname' Of course, this only lets you monitor changes in one jail at a time. You can cover more by copying the script and changing its name eg. sed -e 's/daily_status_pkg_changes/daily_status_pkg_changes2/g' \ < 490.status-pkg-changes > 490.status-pkg-changes2 Then add appropriate "daily_status_pkg_changes2_flags=3D'-j otherjail'" settings to periodic.conf Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey JID: matthew@infracaninophile.co.uk ------enig2EMWEAXMRBMTLDOVLKIOG 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.16 (Darwin) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlHqiF0ACgkQ8Mjk52CukIwYvgCgjo+wLDfS9WLQrRJ1R5F5DxpG Sk4AnjIpFN1gkszZ9q+VCsocYhTyxdkM =oPHv -----END PGP SIGNATURE----- ------enig2EMWEAXMRBMTLDOVLKIOG--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?51EA8855.7070109>