Track Daemon Process Activity

To get the details on daemon process's activity, run the activity tracker:

./script/tools/process-logger.sh -p <PID> -l|--log-folder <log folder> -d|--pid-folder <pid folder>

Example:

./script/tools/process-logger.sh -p 4242 -l /tmp/logs -d /tmp/pids

Usage:

 track -p <PID> -l|--log-folder <log folder> -d|--pid-folder <pid folder>

    Logs folder structure: <LOG-FOLDER>/<PID>.
    Example:
      LOG-FOLDER = /tmp/logs
      PID = 4242

      Result: /tmp/logs/4242/

    Options:
      Required:
        -p|--pid
          PID of target process

        -l|--log-folder
          Folder, where logs are stored

        -d|--pid-folder
          Folder, where pid files are stored

      Optional:
        -t|--time-interval
          Refresh time in seconds. Works only for main log and lsof command
          Default: 1 second

        -m|--memory-alert-step
          Memory alert size. In megabytes.
          Default: 100m

        -r|--log-max-size
          Max log size, before it rotates. In megabytes.
          Default: 100m

    Example:

      track.sh -p 4242 -l /tmp/logs -d /tmp/pids