Closed Yakulu closed 8 years ago
Hi,
I'm not familiar with systemd's nspawn feature. In general, needrestart should be able to handle process' filesystem namespace correctly. Which version of needrestart do you use? The namespace support was enhanced/fixed in 2.8.
HTH, Thomas
I used needrestart from debian jessie repository instead of backported one (so 1.2). I tried with 2.8 from bpo and it seems to handle nspawn gracefully. Sorry for the bad noise and thanks for your work !
It should be a good thing if needrestart can support systemd-nspawn containers. I use nspawn for thin / app containing and needrestart does not handle the fact that launched binary is under a specific tree and not under the root tree. So it always asks to restart services. For example :
Here postgres binary is located under
/var/lib/container/name/usr/lib/postgresql/9.5/bin/postgres
.Thank you for the utility and thank you for reading ;)