LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Accident deleted log file in server (https://www.linuxquestions.org/questions/linux-newbie-8/accident-deleted-log-file-in-server-943779/)

edwardkhong2012 05-07-2012 08:04 PM

Accident deleted log file in server
 
HI All

I accidentally delete log files which located in

/var/log/cups/error_log
/var/log/cups/access_log

The system seems like not generate again for the file and after i deleted the log file, the disk space doesn't increase.

Please help...

chrism01 05-07-2012 08:13 PM

Disk space doesn't increase because the file is still open, its not really deleted ( 'unlinked' ) until the prog releases it.
Try
Code:

service cups restart
or whatever the equiv is on your distro.
(Please add distro name/version to your profile for future ref)

edwardkhong2012 05-07-2012 09:38 PM

Thx for your suggestion~~


All times are GMT -5. The time now is 08:26 PM.