summaryrefslogtreecommitdiffstats
path: root/etc/inc/pkg-utils.inc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2011-05-17 22:23:54 +0000
committerErmal <eri@pfsense.org>2011-05-17 22:23:54 +0000
commit7eea44079f4609e30ff0478f4d0c0ea34593f7cd (patch)
tree67ef35b92f1a7e6986b83cddf8136b9d5a65f22e /etc/inc/pkg-utils.inc
parentb5058001d46adc5f37623c3890a8617dac4e7c54 (diff)
downloadpfsense-7eea44079f4609e30ff0478f4d0c0ea34593f7cd.zip
pfsense-7eea44079f4609e30ff0478f4d0c0ea34593f7cd.tar.gz
When uninstalling a service actually stop it first.
Diffstat (limited to 'etc/inc/pkg-utils.inc')
-rw-r--r--etc/inc/pkg-utils.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/inc/pkg-utils.inc b/etc/inc/pkg-utils.inc
index 5c21428..d475a40 100644
--- a/etc/inc/pkg-utils.inc
+++ b/etc/inc/pkg-utils.inc
@@ -42,6 +42,7 @@
require_once("globals.inc");
require_once("xmlrpc.inc");
+require_once("service-utils.inc");
if(file_exists("/cf/conf/use_xmlreader"))
require_once("xmlreader.inc");
else
@@ -324,6 +325,8 @@ function uninstall_package($pkg_name) {
}
}
+ stop_service($pkg_name);
+
$id = get_pkg_id($pkg_name);
if ($id >= 0) {
$pkg_depends =& $config['installedpackages']['package'][$id]['depends_on_package'];
OpenPOWER on IntegriCloud