Execution of sbd deleting all log files

Execution of sbd deleting all log files

book

Article ID: KB0075724

calendar_today

Updated On:

Products Versions
TIBCO Streaming 7.7
Not Applicable -

Description

When sbd stops it deletes all log files in the working directory.

Environment

All

Resolution

There are two different behaviors depending on what is already present in the target working directory (either the default directory or the working directory specified by the -w option) when the sbd server is started.

1) the log files located in the working directory are kept intact.
 
2) the entire working directory is removed.
 
The reason for the difference is
 
When sbd starts, if the target working directory is empty, then all files will be removed when the application is shutdown normally. 
If there is a file there already, then sbd will NOT delete the files as it shuts down. This explains why sometimes the files are left behind and sometimes deleted.
 
To keep the files created make sure there is at least one file in the directory specified by the sbd '-w <working-dir>' option.

Issue/Introduction

Execution of sbd deleting all log files