Subject: Re: srw-rw-rw ?!
To: None <netbsd-users@netbsd.org>
From: Jukka Salmi <j+nbsd@2004.salmi.ch>
List: netbsd-users
Date: 01/05/2005 17:06:05
Zafer Aydogan --> netbsd-users (2005-01-05 16:11:47 +0100):
> I accidently deleted a file in /var/run called "log"
> with following rights: srw-rw-rw-
> As far as I know, that is a socket file.
> chmod +s does not set the "s" on the first place.
> My system (1.6.1/i386) did not recreated that file after the reboot, but
> still works fine.
> How can I recreate that file ?
Yes, /var/run/log is a socket created by syslogd; (re-)starting
syslogd should recreate it. Don't know why the reboot didn't fix
this; maybe try starting syslogd with -d.
BTW, the socket is removed when syslogd exits.
HTH, Jukka
--
bashian roulette:
$ ((RANDOM%6)) || rm -rf ~