diff options
author | Ermal <eri@pfsense.org> | 2011-05-17 22:23:54 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2011-05-17 22:23:54 +0000 |
commit | 7eea44079f4609e30ff0478f4d0c0ea34593f7cd (patch) | |
tree | 67ef35b92f1a7e6986b83cddf8136b9d5a65f22e | |
parent | b5058001d46adc5f37623c3890a8617dac4e7c54 (diff) | |
download | pfsense-7eea44079f4609e30ff0478f4d0c0ea34593f7cd.zip pfsense-7eea44079f4609e30ff0478f4d0c0ea34593f7cd.tar.gz |
When uninstalling a service actually stop it first.
-rw-r--r-- | etc/inc/pkg-utils.inc | 3 |
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']; |