Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Jun 2021 20:36:51 -0400
From:      "Kevin P. Neal" <kpn@neutralgood.org>
To:        bob prohaska <fbsd@www.zefox.net>
Cc:        FreeBSD Ports <freebsd-ports@freebsd.org>
Subject:   Re:  Stopping and restarting poudriere
Message-ID:  <YMANIy7tJM0MdOyz@neutralgood.org>
In-Reply-To: <20210608232954.GA26003@www.zefox.net>
References:  <20210608145624.GA22166@www.zefox.net> <alpine.BSF.2.21.9999.2106090745350.19527@aneurin.horsfall.org> <20210608232954.GA26003@www.zefox.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Jun 08, 2021 at 04:29:54PM -0700, bob prohaska wrote:
> Three actions seem possible: Change the ssh session (move to another
> workstation), reboot the workstation or reboot the poudriere builder.
> Using screen for the connection instead of ssh would likely allow
> the first two, but I didn't plan that far ahead.
> 
> My question was inspired by a hazy memory of something called
> "checkpointing" a job on a mainframe. I think it was in the mid
> 1980's. I believe it involved something like a core dump which
> was then reloaded from disk and restarted later on. 
> 
> Surely anthing possible then should be trivial now 8-)
> 
> I tried using control-C in two cases. In the first, which was
> intentional, poudriere didn't want to restart, saying the jail
> was still running. I had to kill the jail explictly, suggesting
> the kill wasn't complete. In the second case the kill was accidental
> but the restart was uneventful. Together, it suggests control-C isn't
> a good way to stop poudriere.
> 
> For now, it seems the answer is "Let poudriere finish!".

I have issues with my ISP where my ssh sessions die at random times, usually
(but not always) when I'm away from the computer. So solution for Poudriere
was to run it in the background and pipe stdout+stderr to a file in /tmp.
Then a tail -f on that file and it's almost as good as running it in the
foreground -- but with the advantage that if the connection goes I can
just log back in and tail -f again.

I also have a script that runs in another window with the output of
"poudriere status -b" followed by "sleep 4" in a loop. That way I can
just glance to that side of my monitor to see how things are going.
-- 
Kevin P. Neal                                http://www.pobox.com/~kpn/

 "Good grief, I've just noticed I've typed in a rant. Sorry chaps!"
                            Keir Finlow Bates, circa 1998



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