]> git.ipfire.org Git - people/stevee/guardian.git/commit - guardian
Add support for command line arguments and usage of "Config" module.
authorStefan Schantl <stefan.schantl@ipfire.org>
Mon, 23 Nov 2015 08:57:25 +0000 (09:57 +0100)
committerStefan Schantl <stefan.schantl@ipfire.org>
Mon, 23 Nov 2015 08:57:25 +0000 (09:57 +0100)
commit45bf2a03c98db3aeb415d4315933f238748ecb53
treeb8cd11184eafe7d4b201a670c1863f9791794beb
parent6abac3d4df20329e1f1e8967aa2c097fb9303d61
Add support for command line arguments and usage of "Config" module.

guardian now can be called with some additional command line arguments, like
"--config" to specify a different config file than the default one. The optoions
"--help" and "--vesion" will display some help texts and version informations on
the console. The "--foreground" option is not supported/implemented yet and will
be used to keep the process in the foreground and not fork into background at a later
time.

The "Config" module now also is used to get all settings from the config file and
store them into a hash called mainsettings for a later usage.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
guardian