Here is a possible approach to deal with this and similar issues.

Define a virtual provider, say, "debian.org-rsyslog-fs", which you put in your Required-Start and Required-Stop. Then you add a definition of this provider to /etc/insserv.conf. (Perhaps insserv could provide /etc/insserv.conf.d/.) Depending on which plugins are installed, you can update the definition of your virtual provider to include $local_fs, $remote_fs or even, say, postgresql.

It's a bit weird, but I think it would work in theory.

Thanks for the nice idea.
But that a plugin is installed doesn't necessarily mean that it is also enabled and loaded. The dependencies would have to be evaluated dynamically (e.g. by checking the rsyslog.conf config file), but insserv only allows to specify static dependencies unfortunately.

Cheers,
Michael

--
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to