SUMMARY: How do you copy a socket?

From: Homan, Charles (NE) <Charles.Homan_at_GDC4S.Com>
Date: Tue May 14 2002 - 15:22:39 EDT
Thanks for all of the responses.  There were four basic answers provided:

1. cpio - refused to copy the file
2. ufsdump - copied the file as a regular file (-rwxrwxrwx) instead of as a
socket (srwxrwxrws)
3. dd - didn't try

But the correct answer (provided first by Nicolas Dorfsman) was:
4. "The software which [created/listens to] this socket will re-create it."

I just booted the machine and sure enough NDS re-created its sockets, and
seems happy about it.

Thanks to:
Nicolas Dorfsman
Darren Dunham
Steve Elliott
Mark Hargrave
Sean Berry
Urie, Todd
Lennon, Padraig
Graham Wood
Jonathan Andrews
Lars Hecking
Jeff Claunch
Steven Aizic
Fabrice Guerini


>  -----Original Message-----
> From: 	Homan, Charles (NE)  
> Sent:	Tuesday, May 14, 2002 11:13 AM
> To:	''
> Subject:	How do you copy a socket?
> OK, here's what I hope is an easy one: I am trying to move /var onto its
> own partition on the boot disk.  I have created a new partition in the
> blank space, newfs'ed it, booted from CD.  Then I mount and move stuff
> like so:
> mount /dev/dsk/c0t0d0s0 /a
> mount /dev/dsk/c0t0d0s7 /a/newvar
> cd /a/var
> tar cf - . | ( cd /a/newvar ; tar xf - )
> Should be no issue, but it seems there are two socket files (created by
> NDS) in /var, which tar barfs on.  One is:
> srwxrwxrwx 1	root	other 0	May 9 9:13 s-n4ucmd
> The other is similar.
> How can I either copy over or re-create this socket file on the new
> partition?  Any help would be vastly appreciated!
> Thanks!
> Charles
sunmanagers mailing list
Received on Tue May 14 15:26:47 2002

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:42:43 EST