Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 05-29-2009, 04:21 AM   #1
LQ Newbie
Registered: May 2006
Distribution: Arch 64
Posts: 27

Rep: Reputation: 0
Question Deleted log file - how to get back via file descriptor and keep alive?

Hi all,

I thought I'd rotate a log file manually not realising the Flexlm daemon was still holding onto it. The new file was 0 bytes and would not update.

I managed to find the old file was still being written to via its inode - I can copy the file back from /proc/PID/fd/1

However this is just a copy - is there any way I can point the writing to this file without re-starting the daemon?

( I followed instructions at if anyones interested )

Cheers for any help.

Old 05-29-2009, 09:08 AM   #2
LQ Newbie
Registered: May 2006
Distribution: Arch 64
Posts: 27

Original Poster
Rep: Reputation: 0
Ok - looks like it may be possible as detailed at :-

However it uses debugfs - has anyone ever used this?

I'm weary as this is a Red Hat ES4 machine using LVM/ext3 and from reports it doesn't look safe - looks like I'll have to leave it until its rebooted.

Cheers for looking



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Deleted XF86Config-4 file and it won't come back spfdz Debian 2 03-22-2006 01:29 PM
recent attack via phpBB, log files deleted? accessed file system outside /home/ enzo250gto Linux - Security 8 12-17-2004 01:51 PM
apt-file returns nothing; 'bad file descriptor' overbored Debian 3 10-03-2004 09:13 PM
I've deleted a log file to save space and... ganninu Linux - General 3 11-04-2003 12:03 PM
restore back deleted file edreddy Linux - General 4 07-19-2002 06:43 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:33 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration