Difference between revisions of "Seon oftp2 offlinehandling"
(→What is it?) |
|||
Line 19: | Line 19: | ||
The configuration switch [[Seon Core configuration#remove successfully handled offline OFTP2 file entries|remove successfully handled offline OFTP2 file entries]] influences the daemon how to handle the lines of the database table when the file is handled successfully. | The configuration switch [[Seon Core configuration#remove successfully handled offline OFTP2 file entries|remove successfully handled offline OFTP2 file entries]] influences the daemon how to handle the lines of the database table when the file is handled successfully. | ||
+ | |||
+ | == Behaviour == | ||
+ | The main behaviour is as follows: | ||
+ | #check database table for new entry ('<code>status=0</code>') | ||
+ | #if entry exists: | ||
+ | ##run pre-script | ||
+ | ###if pre-scripts return with error abort | ||
+ | ###if not, continue | ||
+ | ##handle file | ||
+ | ##run post-script with returncode of handling | ||
+ | #check for next entry | ||
+ | #if no entry exists, sleep for defined timeslice | ||
+ | |||
+ | So, the following return code states are: | ||
+ | |||
+ | === pre-script returncode handling === | ||
+ | If the returncode of the pre-script is not 0, further handling will not occur. The error (command call, returncode & output) will be logged in the receive log. The status of the entry will be set to "<code>2</code>". | ||
+ | |||
+ | If the returncode is zero, handling continues. | ||
+ | |||
+ | === post-script returncode handling === | ||
+ | If the returncode of the post-script is not 0, the error (command call, returncode & output) will be logged in the receive log. The status of the entry will be set to "<code>6</code>". The entry will not be removed from the table. | ||
+ | |||
+ | If the returncode is zero, the configuration flag [[Seon Core configuration#remove successfully handled offline OFTP2 file entries]] influences the next behaviour. If enabled (non-zero), the entry will be removed, otherwise it will be set to "<code>7</code>". |
Revision as of 08:47, 4 December 2007
Contents
What is it?
"seon_oftp2_offlinehandling
" is a daemon which runs on a seperate machine, without needing an Seon license. It needs an Seon configuration file (default: "/etc/seon.conf
") in order to access the database, containing the Seon configuration and parameters.
When the configuration flag " Enable offline handling of OFTP2 transfered files?" is enabled, all received files via OFTP2 will be added to a special table. This table, filled with all file parameters, will be traversed by the daemon. The main task is to handle (decrypt, decompress and/or check signature) the incoming files asynchronously on another machine, achieving the highest security.
parameters
There are several ways to customize the behaviour of this daemon. Please have a look at the configuration settings with all subsections [[Seon Core configuration#Enable offline handling of OFTP2_transfered files.3F|here]].
scripts
There are two script, which get executed when accessible. These scripts have the following parameters:
pre-script
- real filename
- server ID
post-script
- real filename
- server ID
- returncode of OFTP2 handling process (0=no error)
The configuration switch remove successfully handled offline OFTP2 file entries influences the daemon how to handle the lines of the database table when the file is handled successfully.
Behaviour
The main behaviour is as follows:
- check database table for new entry ('
status=0
') - if entry exists:
- run pre-script
- if pre-scripts return with error abort
- if not, continue
- handle file
- run post-script with returncode of handling
- run pre-script
- check for next entry
- if no entry exists, sleep for defined timeslice
So, the following return code states are:
pre-script returncode handling
If the returncode of the pre-script is not 0, further handling will not occur. The error (command call, returncode & output) will be logged in the receive log. The status of the entry will be set to "2
".
If the returncode is zero, handling continues.
post-script returncode handling
If the returncode of the post-script is not 0, the error (command call, returncode & output) will be logged in the receive log. The status of the entry will be set to "6
". The entry will not be removed from the table.
If the returncode is zero, the configuration flag Seon Core configuration#remove successfully handled offline OFTP2 file entries influences the next behaviour. If enabled (non-zero), the entry will be removed, otherwise it will be set to "7
".