aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorthompsa <andy@fud.org.nz>2010-01-28 10:25:04 +1300
committerthompsa <andy@fud.org.nz>2010-01-28 10:25:04 +1300
commit4e829559c54053e7768b2bf37a5077ba770b1834 (patch)
tree2729f85af9b6c6bcd663170bbe11d2941a81d770
parentce23dd2c09e12049967fc7fd662f6f61ad3db9c0 (diff)
downloadpfsense-packages-4e829559c54053e7768b2bf37a5077ba770b1834.tar.gz
pfsense-packages-4e829559c54053e7768b2bf37a5077ba770b1834.tar.bz2
pfsense-packages-4e829559c54053e7768b2bf37a5077ba770b1834.zip
Fix stop/start on rule download.
-rw-r--r--config/snort-dev/snort_download_rules.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/snort-dev/snort_download_rules.php b/config/snort-dev/snort_download_rules.php
index 18dc91b7..5948aa95 100644
--- a/config/snort-dev/snort_download_rules.php
+++ b/config/snort-dev/snort_download_rules.php
@@ -560,7 +560,7 @@ update_output_window(gettext("Stopping Snort service..."));
$chk_if_snort_up = exec("pgrep -x snort");
if ($chk_if_snort_up != "") {
exec("/usr/bin/touch /tmp/snort_download_halt.pid");
- stop_service("snort");
+ exec("/bin/sh /usr/local/etc/rc.d/snort.sh stop");
sleep(2);
}
@@ -1118,7 +1118,7 @@ exec("/bin/chmod -R 755 /usr/local/lib/snort");
/* if snort is running hardrestart, if snort is not running do nothing */
if (file_exists("/tmp/snort_download_halt.pid")) {
- start_service("snort");
+ exec("/bin/sh /usr/local/etc/rc.d/snort.sh start");
update_status(gettext("The Rules update finished..."));
update_output_window(gettext("Snort has restarted with your new set of rules..."));
exec("/bin/rm /tmp/snort_download_halt.pid");