Re: No daemon-reload or restart with %systemd_postun_with_restart

2022-03-26 Thread Zbigniew Jędrzejewski-Szmek
On Fri, Mar 25, 2022 at 07:07:22PM -0400, Sam Varshavchik wrote: > Zbigniew Jędrzejewski-Szmek writes: > > > > > That the service is "oneshot" matters for the "restart" part. What > > > > systemd actually does, is queue a "try-restart" job for the marked > > > > units. > > > > Since this service

Re: No daemon-reload or restart with %systemd_postun_with_restart

2022-03-25 Thread Sam Varshavchik
Zbigniew Jędrzejewski-Szmek writes: > > That the service is "oneshot" matters for the "restart" part. What > > systemd actually does, is queue a "try-restart" job for the marked units. > > Since this service is not running, that should become noop. > > There seems to be a bug in the implementati

Re: No daemon-reload or restart with %systemd_postun_with_restart

2022-03-25 Thread Zbigniew Jędrzejewski-Szmek
On Thu, Mar 24, 2022 at 07:51:11PM -0400, Sam Varshavchik wrote: > Zbigniew Jędrzejewski-Szmek writes: > > > There are two separate steps here: "daemon-reload" and "restart > > testsystemd.service". Systemd is complaining about "daemon-reload" > > missing. It isn't internally cognizant of the fac

Re: No daemon-reload or restart with %systemd_postun_with_restart

2022-03-24 Thread Sam Varshavchik
Zbigniew Jędrzejewski-Szmek writes: There are two separate steps here: "daemon-reload" and "restart testsystemd.service". Systemd is complaining about "daemon-reload" missing. It isn't internally cognizant of the fact that testsystemd.service should be restarted, that is managed by the rpm scri

Re: No daemon-reload or restart with %systemd_postun_with_restart

2022-03-24 Thread Zbigniew Jędrzejewski-Szmek
On Thu, Mar 24, 2022 at 08:38:39AM +0100, Fabio Valentini wrote: > On Tue, Mar 22, 2022, 00:12 Sam Varshavchik wrote: > > [mrsam@jack tmp]$ systemctl status testsystemd | cat > > Warning: The unit file, source configuration file or drop-ins of > > testsystemd.service changed on disk. Run 'systemct

Re: No daemon-reload or restart with %systemd_postun_with_restart

2022-03-24 Thread Zbigniew Jędrzejewski-Szmek
On Wed, Mar 23, 2022 at 05:55:19PM +0100, Ewoud Kohl van Wijngaarden wrote: > On Mon, Mar 21, 2022 at 07:12:23PM -0400, Sam Varshavchik wrote: > > %install > > mkdir -p $RPM_BUILD_ROOT/lib/systemd/system > > cat >$RPM_BUILD_ROOT/lib/systemd/system/testsystemd.service < > [Unit] > > Description=test

Re: No daemon-reload or restart with %systemd_postun_with_restart

2022-03-24 Thread Fabio Valentini
On Tue, Mar 22, 2022, 00:12 Sam Varshavchik wrote: > Ewoud Kohl van Wijngaarden writes: > > > On Mon, Mar 21, 2022 at 08:27:35AM -0400, Sam Varshavchik wrote: > >> Ewoud Kohl van Wijngaarden writes: > >> > >>> On Fri, Mar 18, 2022 at 06:22:08PM -0400, Sam Varshavchik wrote: > The only thing

Re: No daemon-reload or restart with %systemd_postun_with_restart

2022-03-24 Thread Barry
 > On 24 Mar 2022, at 01:07, Sam Varshavchik wrote: > Ewoud Kohl van Wijngaarden writes: > >> On Mon, Mar 21, 2022 at 07:12:23PM -0400, Sam Varshavchik wrote: >>> Ewoud Kohl van Wijngaarden writes: On Mon, Mar 21, 2022 at 08:27:35AM -0400, Sam Varshavchik wrote: > Ewoud Kohl van Wijn

Re: No daemon-reload or restart with %systemd_postun_with_restart

2022-03-23 Thread Sam Varshavchik
Ewoud Kohl van Wijngaarden writes: On Mon, Mar 21, 2022 at 07:12:23PM -0400, Sam Varshavchik wrote: Ewoud Kohl van Wijngaarden writes: On Mon, Mar 21, 2022 at 08:27:35AM -0400, Sam Varshavchik wrote: Ewoud Kohl van Wijngaarden writes: On Fri, Mar 18, 2022 at 06:22:08PM -0400, Sam Varshavch

Re: No daemon-reload or restart with %systemd_postun_with_restart

2022-03-23 Thread Ewoud Kohl van Wijngaarden
On Mon, Mar 21, 2022 at 07:12:23PM -0400, Sam Varshavchik wrote: Ewoud Kohl van Wijngaarden writes: On Mon, Mar 21, 2022 at 08:27:35AM -0400, Sam Varshavchik wrote: Ewoud Kohl van Wijngaarden writes: On Fri, Mar 18, 2022 at 06:22:08PM -0400, Sam Varshavchik wrote: The only thing that https:

Re: No daemon-reload or restart with %systemd_postun_with_restart

2022-03-21 Thread Sam Varshavchik
Ewoud Kohl van Wijngaarden writes: On Mon, Mar 21, 2022 at 08:27:35AM -0400, Sam Varshavchik wrote: Ewoud Kohl van Wijngaarden writes: On Fri, Mar 18, 2022 at 06:22:08PM -0400, Sam Varshavchik wrote: The only thing that https://docs.fedoraproject.org/en-US/packaging- guidelines/Scriptlets/ t

Re: No daemon-reload or restart with %systemd_postun_with_restart

2022-03-21 Thread Ewoud Kohl van Wijngaarden
On Mon, Mar 21, 2022 at 08:27:35AM -0400, Sam Varshavchik wrote: Ewoud Kohl van Wijngaarden writes: On Fri, Mar 18, 2022 at 06:22:08PM -0400, Sam Varshavchik wrote: The only thing that https://docs.fedoraproject.org/en-US/packaging- guidelines/Scriptlets/ tells me to do is to put %systemd_pos

Re: No daemon-reload or restart with %systemd_postun_with_restart

2022-03-21 Thread Sam Varshavchik
Ewoud Kohl van Wijngaarden writes: On Fri, Mar 18, 2022 at 06:22:08PM -0400, Sam Varshavchik wrote: The only thing that https://docs.fedoraproject.org/en-US/packaging- guidelines/Scriptlets/ tells me to do is to put %systemd_postun_with_restart in my %post. However: 1) systemd complains tha

Re: No daemon-reload or restart with %systemd_postun_with_restart

2022-03-21 Thread Ewoud Kohl van Wijngaarden
On Fri, Mar 18, 2022 at 06:22:08PM -0400, Sam Varshavchik wrote: The only thing that https://docs.fedoraproject.org/en-US/packaging- guidelines/Scriptlets/ tells me to do is to put %systemd_postun_with_restart in my %post. However: 1) systemd complains that it wants a daemon-reload, in order t