BaShinaTor.org
About BaShinaTor.org
A typical Bashinator-based application file layout looks like this:/etc/myapplication/bashinator.cfg.sh # bashinator configuration file/etc/myapplication/myapplication.cfg.sh # application configuration file/usr/lib/myapplication.lib.sh # application library file containing __init(), __main() and other user defined functions/usr/bin/myapplication.sh # executable application script file based on bashinators example.sh A typical Bashinator-based application script structure looks like this (see example.sh):define basic bashinator variablessource bashinator library + configsource application library + configboot bashinator via __boot()dispatch the application via __dispatch()runs __init(): initializes application (command line parsing, argument validation etc.). this function must be defined by the user!runs __prepare(): creates sub-command logfile (if configured), checks for and creates lockfile (if configured). this function is defined by bashinator.