[systemd-devel] Connect /usr/bin/init to docker container's STDOUT/STDIN

Nicola Mori nicolamori at aol.com
Sun Oct 2 07:48:59 UTC 2022


Nice tip, thank you!

Nicola

On 02/10/22 09:43, Barry wrote:
> 
> 
>> On 30 Sep 2022, at 14:30, Nicola Mori <nicolamori at aol.com> wrote:
>>
>>   # Save the long-running PID on file
>>   ps aux | grep "sleep infinity" | head -n 1 | awk '{ print $2 }' > /container-pipes-pid
> 
> echo $! >/container-pipes-pid
> 
> See man bash for $! definition.
> 
> Barry
> 
> 


More information about the systemd-devel mailing list