Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Jun 2021 15:53:04 +0900
From:      Tatsuki Makino <tatsuki_makino@hotmail.com>
To:        freebsd-ports@freebsd.org
Subject:   Re: Stopping and restarting poudriere
Message-ID:  <PSAPR03MB5639441A5311875BA92893C4FA369@PSAPR03MB5639.apcprd03.prod.outlook.com>
In-Reply-To: <YL%2BQUBjzVb%2BjiMT%2B@home.opsec.eu>
References:  <20210608145624.GA22166@www.zefox.net> <YL%2BQUBjzVb%2BjiMT%2B@home.opsec.eu>

next in thread | previous in thread | raw e-mail | index | archive | help
As for why Ctrl+Z suspend doesn't work, perhaps poudriere-3.3.6/src/poudriere-sh/helpers.c is trapping it.
However, it does trap SIGTSTP, but not SIGSTOP.
In other words, Ctrl+Z with SIGTSTP will not suspend, but SIGSTOP will.
I actually used the following method to suspend it.

# Find the jail
jls -v
(snip)
    87  foojail-default-job-01            /usr/local/poudriere/data/.m/foojail-default/01
        foojail-default-job-01            ACTIVE
        5
        127.0.0.1
        ::1

# suspend all processes.
pkill -STOP -j 87 -a
# restart the process
pkill -CONT -j 87 -a
# note: this will not suspend
pkill -TSTP -j 87 -a




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