[BusyBox] Live updating busybox?
Bastian Blank
waldi at debian.org
Mon Nov 17 18:09:22 UTC 2003
On Mon, Nov 17, 2003 at 02:48:12PM +0100, Steven Scholz wrote:
> One suggestion I got was to store the new version of busybox in let's say
> /bin/busybox.new and then "mv /bin/busybox.new /bin/busybox" where "mv"
> must not be the busybox applet but a standalone binary.
the first is right, the second is not, rename(2) is an atomar operation.
> 2.) Should I kill busybox inetd, httpd, telnetd etc before updating busybox?
You never write into the living binary, so the in-memory footprint is in
sync with the on-disc binary even if it is unlink()ed.
> 3.) When updating busybox, is it better to have soft- or hardlinks to
> /bin/busybox for all the applications?
soft, as they don't need updates.
Bastian
--
We'll pivot at warp 2 and bring all tubes to bear, Mr. Sulu!
More information about the busybox
mailing list