Please notice the process 71422 in both outputs. It looks like the
process survived the jail restart (postgresql resides in another jail).
As a result I have two synapse processes running with the same config in
the jail, which just being restarted. BTW, if I restart the jail once
again, I have three synapse processes...
So, basically I have two questions so far:
1. Just out of curiosity, how is that possible - a residing in the jail
process survives the jail restart. Is it common things and I missed
something about jails? Or it is just for python (maybe another
2. How to solve this? Meaning force the jail behave as it should,
meaning the processes in the jail should be restarted as far as the jail
Re: A process survives a restart of the jail in which the process reside. How so?
On 2019-09-18 13:15, Jazzlover wrote:
> Hello there,
> Frankly, I am quite puzzled. I have synapse (matrix) server installed
> a jail. When I restart the jail, the process not only survives the
> restart, but start itself once again as well.
> Before `service jail restart matrix`
> So, basically I have two questions so far:
> 1. Just out of curiosity, how is that possible - a residing in the jail
> process survives the jail restart. Is it common things and I missed
> something about jails? Or it is just for python (maybe another
> 2. How to solve this? Meaning force the jail behave as it should,
> meaning the processes in the jail should be restarted as far as the
> is restarted.
It looks like you've answered #2 yourself, but this is still something
that shouldn't be happening. The only time stopping a jail should
result in the jail still existing with old processes is if those
processes end up completely unkillable (which generally points to a
I wonder if leaving the rc system out of entirely, and just restarting
via jail(8) would change anything. Does a "jail -rc jailname" give any
This fix worries me, because that doesn't look like a line the requires
quoting (unless you want the spaces to be part of the value). Also, the
fact that the unquoted value caused the symptoms it did without any
error messages is wrong even if quoting the value fixes it.
I'd like to see the entire jail.conf, and see if I can reproduce and
pinpoint this problem.