Skip to main content

Product: Xtradyne I-DBC
Version: ALL

Description:

Using Logrotate on Solaris causes sparse DBC log files

 

Resolution:

When Logrotate is used on Solaris to rotate DBC log files this may result in sparse files, i.e., the log files are not truncated properly, but filled with null bytes.

The problem is that the shell (sh) does not implement the append file mode for output redirection but seeks for end of file. This will result in sparse files during truncate as the log files remain opened for writing by the DBC processes.

As a workaround use bash instead of sh to execute DBC wrapper scripts. Make sure that you have installed bash on your system. The default installation path for bash is /usr/bin. If bash is not installed on your system and it is not provided with the Solaris distribution you can download it from http://www.sunfreeware.com/.

To associate the DBC wrapper scripts with bash you need to change the first line in the files below.

For the I-DBC Proxy:

  • <INSTALLDIR>/bin/xdn_idbc
  • <INSTALLDIR>/bin/runiproxy

For the SPS:

  • <INSTALLDIR>/bin/xdn_sps
  • <INSTALLDIR>/bin/runsps

For WS-DBC Proxy:

  • <INSTALLDIR>/bin/xdn_wsdbc
  • <INSTALLDIR>/bin/runwsproxy

Replace the first line:

#!/bin/sh

with

#!/usr/bin/bash --posix


#OpenFusion
#KnowledgeDocs