[prev in list] [next in list] [prev in thread] [next in thread]
List: freebsd-net
Subject: userland shutdown(2)?
From: Harry Schmalzbauer <freebsd () omnilan ! de>
Date: 2017-11-14 9:52:55
Message-ID: 5A0ABCF7.6080606 () omnilan ! de
[Download RAW message or body]
Hello,
stoping jails leaves open sockets with no process attached.
(sockstat shows like this line:
? ? ? ? tcp6 2001:db8::fedc:389 2001:db8::abcd:15666
)
Since I make use of mount lines in jail.conf,
umounting the root filesystem of the jail fails because "device busy".
To avoid dirty filesystems after reboot of the host,
my modified rc.d/jail updates the corresponding filesystem
to be mounted readonly, but that's not a great solution.
I'd like to get all sockets killed before jail vanishes.
There's shutdown(2), which seems to do exactly what I want,
but where/how to implement?
Is there any userland tool utilizing shutdown(2)?
Thanks,
-Harry
_______________________________________________
freebsd-net@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic