diff options
Diffstat (limited to 'config/snort/snort_pkg.sh')
-rw-r--r-- | config/snort/snort_pkg.sh | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/config/snort/snort_pkg.sh b/config/snort/snort_pkg.sh deleted file mode 100644 index a19adf4d..00000000 --- a/config/snort/snort_pkg.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/local/bin/php -f -<?php -require_once("/usr/local/pkg/snort/snort.inc"); -global $g; -switch (strtolower($argv[1])) { - case "start": - if (!file_exists("{$g['varrun_path']}/snort_pkg_starting.lck")) { - touch("{$g['varrun_path']}/snort_pkg_starting.lck"); - snort_start_all_interfaces(); - unlink_if_exists("{$g['varrun_path']}/snort_pkg_starting.lck"); - } - break; - - case "stop": - snort_stop_all_interfaces(); - unlink_if_exists("{$g['varrun_path']}/snort_pkg_starting.lck"); - break; - - case "restart": - snort_stop_all_interfaces(); - touch("{$g['varrun_path']}/snort_pkg_starting.lck"); - snort_start_all_interfaces(); - unlink_if_exists("{$g['varrun_path']}/snort_pkg_starting.lck"); - break; - - default: - echo "WARNING: ignoring unsupported command - '{$argv[1]}'\n"; -} -?> |