diff options
author | Daniel Stefan Haischt <dsh@pfsense.org> | 2006-08-05 03:48:13 +0000 |
---|---|---|
committer | Daniel Stefan Haischt <dsh@pfsense.org> | 2006-08-05 03:48:13 +0000 |
commit | 91177de593f263ff969a705485317a5b6960684a (patch) | |
tree | ff234cd123fee8e78a493fcc180e64df1b956c02 /packages/p3scan-pf | |
parent | 4b2689545c80d1c4049466223f0e83673934d3cc (diff) | |
download | pfsense-packages-91177de593f263ff969a705485317a5b6960684a.tar.gz pfsense-packages-91177de593f263ff969a705485317a5b6960684a.tar.bz2 pfsense-packages-91177de593f263ff969a705485317a5b6960684a.zip |
- stop the service before deleting the package.
Diffstat (limited to 'packages/p3scan-pf')
-rw-r--r-- | packages/p3scan-pf/p3scan-pf.inc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/packages/p3scan-pf/p3scan-pf.inc b/packages/p3scan-pf/p3scan-pf.inc index 599f5650..294604d3 100644 --- a/packages/p3scan-pf/p3scan-pf.inc +++ b/packages/p3scan-pf/p3scan-pf.inc @@ -326,8 +326,10 @@ function custom_php_install_command() { function custom_php_deinstall_command() { global $config, $g; conf_mount_rw(); - unlink_if_exists("/usr/local/pkg/pf/p3scan_rules.php"); - unlink_if_exists("/usr/local/www/p3scan_rules.php"); + + if (is_service_running("p3scan-pf")) + stop_service("p3scan-pf"); + unlink_if_exists("/usr/local/etc/p3scan/p3scan.conf"); unlink_if_exists("/usr/local/etc/p3scan/p3scan.mail"); unlink_if_exists("/usr/local/etc/rc.d/030.p3scan.sh"); @@ -335,6 +337,7 @@ function custom_php_deinstall_command() { mwexec("rm -rf /var/spool/p3scan"); mwexec("rm -rf /var/run/p3scan"); mwexec("rm -rf /var/run/p3scan"); + conf_mount_ro(); } |