Date: Wed, 23 Dec 2009 09:40:29 -0500 From: Peter Fraser <petros.fraser@gmail.com> To: freebsd-stable@freebsd.org Subject: Re: Create socket files Message-ID: <aa2cc130912230640r7b769ecfj41b0faed39ffb6b9@mail.gmail.com> In-Reply-To: <4ad871310912221815r35542487i8a67ed2f9154a72f@mail.gmail.com> References: <aa2cc130912221734m463107falca51d27e21fccc6a@mail.gmail.com> <4ad871310912221815r35542487i8a67ed2f9154a72f@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi All The problem did seem to be that the service was not running as root as Adam suggested. I had this in rc.conf below. I'm assuming the second line runs the service as user daemon!? ....when I removed it, the service started. Thanks for the help. syslog_ng_enable=3D"YES" syslog_ng_config=3D"-u daemon" syslog_ng_pid=3D"/var/run/syslog-ng.pid" On Tue, Dec 22, 2009 at 9:15 PM, Glen Barber <glen.j.barber@gmail.com> wrot= e: > Hi Peter > > On Tue, Dec 22, 2009 at 8:34 PM, Peter Fraser <petros.fraser@gmail.com> w= rote: >> Hi All >> I wonder if anyone could help me with this problem. I followed the >> instructions in the handbook to create some jails. It makes part of >> the filesystem readonly which is good. > > This sounds like you used the "service jail" approach [1]. Correct me > if I am wrong. > >> Problem is though that I tried >> installing syslog-ng in one of the jails and when I tried to start it, >> I got this error >> >>> Error binding socket; addr=3D'AF_UNIX(/var/run/log)', error=3D'Permissi= on >>> denied (13)' >>> Error initializing source driver; source=3D'src', id=3D'src#0' >>> Error initializing message pipeline; >>> /usr/local/etc/rc.d/syslog-ng: WARNING: failed to start syslog_ng >> >> I think it's trying to create the socket files =A0/var/run/log and >> /var/run/logpriv but can't. Is there anyway for me to create them >> manually? > > It has been some time since I used that method to create jails; the > areas that have burned me in particular were symlinking > /usr/local/bin/perl to /usr/bin/perl and similarly for the > security/ca_root_nss port. > > Re-reading the doc, /var should be made read/write as it is part of > the jail "skeleton" filesystem, from which you create the "moving > parts" of your jail, so to speak. =A0Did you create /var read-only? > > Regards, > > > [1] - http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/jails-app= lication.html > > -- > Glen Barber >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?aa2cc130912230640r7b769ecfj41b0faed39ffb6b9>