Startup-script
In distributive go two startap- scripts, netams-startup.sh and netams-startup-failover.sh. Why?
The first looks like usual startap- script for process- demons UNIX, and it contains no tuning. It is possible to use it for the irregular starting.
The second, which failover, allows:
- To indicate way to ispol'nyaemykh and configurative it is file
- To indicate the parameters of fixing and the name of the ravine- file
- To track the moment of the end (smerti/vykhoda) of process netams, and depending on reason to undertake different actions.
If process ended emergency, then it will be:
- The old ravine- file is preserved
- If there is core- file, then will be preserved also gdb... bt full for the subsequent trial
- Process netams will be neglected again
If process ends upon the command "reload", it there will be perezapushchen.
If process ends upon the command "kill" or "shutdown", then restarting it will not occur and script will finish work.
If process ends, and it will be discovered, that several second it concluded frequently for the latter, then script will stop its work, since similar symptoms are usually caused by error in configurative file.