Guardian now checks for an already running instance on startup and will
cancel if there has been found one.
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
exit;
}
+# Check if another instance of guardian is allready running.
+if (&Guardian::Daemon::IsRunning()) {
+ die "Another instance of Guardian is allready running...\n";
+}
+
# Read-in the configuration file and store the settings.
# Push the may be given config file argument.
my %mainsettings = &Guardian::Config::UseConfig($cmdargs{"config"});