Hi there,

I've got a code review here that delivers an SMF service which periodically updates a local pkg(5) repository from one or more origins.

In order for a user to run this service, the minimum they have to do is:

  # pkgrepo create /some/repodir
  # chown -R pkg5srv /some/repodir

  # svccfg -s mirror setprop config/repository = /some/repodir
  # svccfg -s mirror refresh
  # svcadm enable mirror

Each instance of the service will pkgrecv to a single local repository, but the user is free to create as many instances of the service as they wish, so long as each maps to a different local repository.

Because cron and SMF aren't well-integrated at the moment, the logging is split between the following locations:

  /var/svc/log/application-pkg-mirror:<instance>.log
  /var/log/pkg/mirror/mirror.<instance>.log

The service runs as 'pkg5srv', and as a result this changeset changes the account type for pkg5srv from being locked to being a no-login account so that it can run cron-jobs.

I haven't written documentation other than the comments in the SMF manifest - I think we probably should reference this from pkgrecv(1)

There's a webrev at:

https://cr.opensolaris.org/action/browse/pkg/timf/periodic-pkgrecv/periodic-recv-webrev/

comments would be most welcome (though a quick reminder that I'll be on vacation from the 14th-25th Jan, so I might need to address comments once I'm back in the office)

        cheers,
                        tim
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to