Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
during upgrade some dependencies can also be deinstall so they need to be able to stop an rcscript
Baptiste Daroussin committed 14 years ago
commit bc049c88d3dae196542c23e943f39fe819edd98e
parent 4ab1bf36e2ee7ef2c70796fa29e69fe0b8e7c04f
1 file changed +7 -0
modified libpkg/pkg_jobs.c
@@ -265,6 +265,13 @@ pkg_jobs_install(struct pkg_jobs *j)
				STAILQ_INSERT_TAIL(&pkg_queue, pkg, next);
				pkg_script_run(pkg, PKG_SCRIPT_PRE_DEINSTALL);
				pkg_get(pkg, PKG_ORIGIN, &origin);
+
				/*
+
				 * stop the different related services if the users do want that
+
				 * and that the service is running
+
				 */
+
				pkg_config_bool(PKG_CONFIG_HANDLE_RC_SCRIPTS, &handle_rc);
+
				if (handle_rc)
+
					pkg_stop_rc_scripts(pkg);
				pkgdb_unregister_pkg(j->db, origin);
				pkg = NULL;
			}