[Engine-devel] engine.log was gone

David Jaša djasa at redhat.com
Wed Feb 15 13:52:12 UTC 2012


Shu Ming píše v St 15. 02. 2012 v 19:32 +0800:
> On 2012-2-15 18:30, David Jaša wrote:
> > Shu Ming píše v St 15. 02. 2012 v 17:17 +0800:
> >> Hi,
> >>     I deleted the engine.log under /var/log/ovirt-engine by mistake.  It
> >> seems that the log file can not be recreated whatever engine-clean and
> >> engine-setup were run.  Even rebooting the server didn't work.  Is there
> >> any quick way to bring my engine.log back?
> >>
> > I would try to touch the file, modify permissions to match those of
> > other log files in directory and then restore its selinux context.
> That is what I did.  But don't know hot to restore its selinux context, 
> do have have an example?
> 

restorecon(8) is your friend. In short, "restorecon -FvvR <path>" will
restore context of <path> recursively (but it won't follow symlinks).

David

> 
> >
> > David
> >
> 
> 

-- 

David Jaša, RHCE

SPICE QE based in Brno
GPG Key:     22C33E24 
Fingerprint: 513A 060B D1B4 2A72 7F0D 0278 B125 CD00 22C3 3E24






More information about the Devel mailing list