Re: Should a package restart on upgrade itself

2018-06-27 Thread Josh Paetzel
On Wed, Jun 27, 2018, at 8:56 AM, Mathieu Arnold wrote: > On Wed, Jun 27, 2018 at 08:10:00AM -0500, Matthew D. Fuller wrote: > > On Wed, Jun 27, 2018 at 11:58:17AM +0200 I heard the voice of > > Mathieu Arnold, and lo! it spake thus: > > > > > > Please point out to ports doing this so that

Re: Should a package restart on upgrade itself

2018-06-27 Thread Mathieu Arnold
On Wed, Jun 27, 2018 at 08:10:00AM -0500, Matthew D. Fuller wrote: > On Wed, Jun 27, 2018 at 11:58:17AM +0200 I heard the voice of > Mathieu Arnold, and lo! it spake thus: > > > > Please point out to ports doing this so that they can be fixed. > > On the "irritates me from time to time" list, >

Re: Should a package restart on upgrade itself

2018-06-27 Thread Matthew D. Fuller
On Wed, Jun 27, 2018 at 11:58:17AM +0200 I heard the voice of Mathieu Arnold, and lo! it spake thus: > > Please point out to ports doing this so that they can be fixed. On the "irritates me from time to time" list,

Re: Should a package restart on upgrade itself

2018-06-27 Thread Miroslav Lachman
Mathieu Arnold wrote on 2018/06/27 11:58: On Tue, Jun 26, 2018 at 01:27:49PM +0200, Miroslav Lachman wrote: Miroslav Lachman wrote on 2017/06/27 19:32: [...] Again and again and again... Can we have some written (or do we have?) policy to not stop/start/restart services from some @preunexec

Re: Should a package restart on upgrade itself

2018-06-27 Thread Mathieu Arnold
On Tue, Jun 26, 2018 at 01:27:49PM +0200, Miroslav Lachman wrote: > Miroslav Lachman wrote on 2017/06/27 19:32: > > Matthias Fechner wrote on 2017/06/27 18:29: > > > Dear all, > > > > > > it is always a pain if pkg upgrade a lot of packages to restart all > > > services to make sure

Re: Should a package restart on upgrade itself

2018-06-26 Thread Adam
On Tue, Jun 26, 2018 at 1:03 PM, Josh Paetzel wrote: > > Here's the diff for the commit you referenced: > > https://svnweb.freebsd.org/ports/head/emulators/open-vm- > tools/pkg-plist?r1=457023=457485=457485 > > Which part are you objecting to? > > I don't really have any objections to changing

Re: Should a package restart on upgrade itself

2018-06-26 Thread Miroslav Lachman
Josh Paetzel wrote on 2018/06/26 20:03: On Tue, Jun 26, 2018, at 6:27 AM, Miroslav Lachman wrote: Miroslav Lachman wrote on 2017/06/27 19:32: Matthias Fechner wrote on 2017/06/27 18:29: Dear all, it is always a pain if pkg upgrade a lot of packages to restart all services to make sure

Re: Should a package restart on upgrade itself

2018-06-26 Thread Miroslav Lachman
Franco Fichtner wrote on 2018/06/26 13:41: On 26. Jun 2018, at 1:27 PM, Miroslav Lachman <000.f...@quip.cz > wrote: One example from today upgrade: [87/96] Extracting open-vm-tools-nox11-10.2.5,2: .. done Stopping vmware_guestd. Waiting for PIDS: 516.

Re: Should a package restart on upgrade itself

2018-06-26 Thread Josh Paetzel
On Tue, Jun 26, 2018, at 6:27 AM, Miroslav Lachman wrote: > Miroslav Lachman wrote on 2017/06/27 19:32: > > Matthias Fechner wrote on 2017/06/27 18:29: > >> Dear all, > >> > >> it is always a pain if pkg upgrade a lot of packages to restart all > >> services to make sure update/security fixes

Re: Should a package restart on upgrade itself

2018-06-26 Thread Franco Fichtner
> On 26. Jun 2018, at 1:27 PM, Miroslav Lachman <000.f...@quip.cz> wrote: > > One example from today upgrade: > > [87/96] Extracting open-vm-tools-nox11-10.2.5,2: .. done > Stopping vmware_guestd. > Waiting for PIDS: 516. > Loading vmmemctl kernel module: already loaded. >

Re: Should a package restart on upgrade itself

2018-06-26 Thread Miroslav Lachman
Miroslav Lachman wrote on 2017/06/27 19:32: Matthias Fechner wrote on 2017/06/27 18:29: Dear all, it is always a pain if pkg upgrade a lot of packages to restart all services to make sure update/security fixes are applied to all running services. Is there an option in pkg that it restart

Re: Should a package restart on upgrade itself

2017-06-28 Thread Guido Falsi
On 06/27/17 19:32, Miroslav Lachman wrote: > Matthias Fechner wrote on 2017/06/27 18:29: >> Dear all, >> >> it is always a pain if pkg upgrade a lot of packages to restart all >> services to make sure update/security fixes are applied to all running >> services. >> >> Is there an option in pkg

Re: Should a package restart on upgrade itself

2017-06-28 Thread Torsten Zuehlsdorff
On 27.06.2017 18:29, Matthias Fechner wrote: Dear all, it is always a pain if pkg upgrade a lot of packages to restart all services to make sure update/security fixes are applied to all running services. Is there an option in pkg that it restart services automatically or is it OK if I would

Re: Should a package restart on upgrade itself

2017-06-27 Thread Vlad K.
On 2017-06-27 21:12, Miroslav Lachman wrote: And this is another problem. Poudriere always rebuild whole dependency chain but if package version stays the same then pkg upgrade will not upgrade all packages in chain but just the one with different version number. Which is my point. pkg might

Re: Should a package restart on upgrade itself

2017-06-27 Thread Miroslav Lachman
Vlad K. wrote on 2017/06/27 20:36: Also worth noting is that if you build your pkg repo with Poudriere (and I'm guessing Synth), as it rebuilds ALL packages in the dependency chain, it's easy to see, on each bulk run, which of the packages with services are or could be affected (because their

Re: Should a package restart on upgrade itself

2017-06-27 Thread Michael Gmelin
> On 27. Jun 2017, at 20:11, Matthias Fechner wrote: > >> Am 27.06.2017 um 18:50 schrieb Vlad K.: >> Will this cover libraries as well? Eg. Libre/Open SSL upgrades, >> restart all services that depend on it? >> >> Meanwhile, there's "lsop": > > thanks for this tool, that

Re: Should a package restart on upgrade itself

2017-06-27 Thread Miroslav Lachman
Matthias Fechner wrote on 2017/06/27 20:11: Am 27.06.2017 um 18:50 schrieb Vlad K.: Will this cover libraries as well? Eg. Libre/Open SSL upgrades, restart all services that depend on it? Meanwhile, there's "lsop": thanks for this tool, that is indeed very helpful. Maybe it is a good idea

Re: Should a package restart on upgrade itself

2017-06-27 Thread Vlad K.
Also worth noting is that if you build your pkg repo with Poudriere (and I'm guessing Synth), as it rebuilds ALL packages in the dependency chain, it's easy to see, on each bulk run, which of the packages with services are or could be affected (because their packages are rebuilt), and should

Re: Should a package restart on upgrade itself

2017-06-27 Thread Matthias Fechner
Am 27.06.2017 um 18:50 schrieb Vlad K.: > Will this cover libraries as well? Eg. Libre/Open SSL upgrades, > restart all services that depend on it? > > Meanwhile, there's "lsop": thanks for this tool, that is indeed very helpful. Maybe it is a good idea if pkg collects the information from each

Re: Should a package restart on upgrade itself

2017-06-27 Thread Miroslav Lachman
Matthias Fechner wrote on 2017/06/27 18:29: Dear all, it is always a pain if pkg upgrade a lot of packages to restart all services to make sure update/security fixes are applied to all running services. Is there an option in pkg that it restart services automatically or is it OK if I would add

Re: Should a package restart on upgrade itself

2017-06-27 Thread David Wolfskill
On Tue, Jun 27, 2017 at 06:29:24PM +0200, Matthias Fechner wrote: > Dear all, > > it is always a pain if pkg upgrade a lot of packages to restart all > services to make sure update/security fixes are applied to all running > services. > > Is there an option in pkg that it restart services

Re: Should a package restart on upgrade itself

2017-06-27 Thread Vlad K.
On 2017-06-27 18:35, Baptiste Daroussin wrote: In the futur it is planed to move this into a trigger (executed at the end of the entire upgrade process) which will solve the "dovecot" issue, but not the one where upgrading requires a procedure. Will this cover libraries as well? Eg.

Re: Should a package restart on upgrade itself

2017-06-27 Thread Baptiste Daroussin
On Tue, Jun 27, 2017 at 06:29:24PM +0200, Matthias Fechner wrote: > Dear all, > > it is always a pain if pkg upgrade a lot of packages to restart all > services to make sure update/security fixes are applied to all running > services. > > Is there an option in pkg that it restart services

Re: Should a package restart on upgrade itself

2017-06-27 Thread Franco Fichtner
Hi Matthias, As far as I know, pkg package scripts' runaway processes are reaped since a few versions, so you can't restart from there anymore. Maybe there is a way to detach correctly, I don't know. Cheers, Franco > On 27. Jun 2017, at 6:29 PM, Matthias Fechner wrote: >

Should a package restart on upgrade itself

2017-06-27 Thread Matthias Fechner
Dear all, it is always a pain if pkg upgrade a lot of packages to restart all services to make sure update/security fixes are applied to all running services. Is there an option in pkg that it restart services automatically or is it OK if I would add a post-install script to the packages (I