mirror of
https://github.com/troglobit/finit.git
synced 2026-10-23 11:44:37 +00:00
Remove support for service callback plugins
This patch removes the now heavily outdated (and non-working) support for callback plugins. I.e. plugins that attach themselves to services listed in /etc/finit.conf and can be queried to determine if a service should be started or stopped. The Finit3 support for adding/removing services at runtime with plain text *.conf files in /etc/finit.d and `initctl reload`, this old, and rather cumbersome service callback feature, is not longer supported. Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
6b237b7b00
commit
5a3397419f
5 files changed
+8
-63
No files matched your search
@@ -109,20 +109,6 @@ int plugin_unregister(plugin_t *plugin)
|
||||
#ifndef ENABLE_STATIC
|
||||
TAILQ_REMOVE(&plugins, plugin, link);
|
||||
|
||||
if (plugin->svc.cb) {
|
||||
svc_t *svc;
|
||||
|
||||
/* Unregister plugin callback for all matching services */
|
||||
for (svc = svc_iterator(1); svc; svc = svc_iterator(0)) {
|
||||
if (strcmp(svc->cmd, plugin->name))
|
||||
continue;
|
||||
|
||||
svc->cb = NULL;
|
||||
svc->dynamic = 0;
|
||||
svc->dynamic_stop = 0;
|
||||
}
|
||||
}
|
||||
|
||||
_d("%s exiting ...", plugin->name);
|
||||
free(plugin->name);
|
||||
#else
|
||||
|
||||
Reference in new issue
Block a user