Log Files

 2 Replies
 0 Subscribed to this topic
 27 Subscribed to this forum
Sort:
Author
Messages
Mick
Veteran Member
Posts: 82
Veteran Member
    Hello,
    I am creating a script to touch files such as ladb.log, FileClient, Secuirty, etc.
    Some of these, the ones mentioned need to have the application server stopped.

    Can you provide detail as to why?
    Thank you
    Kwane McNeal
    Veteran Member
    Posts: 479
    Veteran Member
      Are you touching the files to update their timestamps, clear them out, or recreate them.

      The reason some files are locked is they are opened for exclusive access by a process. This is to protect the file from outside (the owning process) manipulation.

      Touch can still touch those files, but the results you get versus what you intended depend on how the file was opened by it's owning process.

      Kwane
      Mick
      Veteran Member
      Posts: 82
      Veteran Member
        To keep the file size within reason vs growing.
        Regular system maintenance.
        I wanted to explain 'why' the application has to be stopped vs copy the log file with date extension and after that we can make them of 0 byte.

        Is this an option with some of the files that have to have the application stopped?