[stgt] [PATCH 2/2] Add conf.d support to default configuration

FUJITA Tomonori fujita.tomonori at lab.ntt.co.jp
Wed Jun 19 09:23:43 CEST 2013


On Tue, 18 Jun 2013 14:42:03 +0100
James Page <james.page at ubuntu.com> wrote:

> Add /etc/tgt/conf.d/*.conf to standard configuration to support
> insertion of configuration without changing the default configuration
> file.
> 
> Signed-off-by: James Page <james.page at ubuntu.com>
> ---
>  conf/Makefile     | 1 +
>  conf/targets.conf | 3 +++
>  2 files changed, 4 insertions(+)
> 
> diff --git a/conf/Makefile b/conf/Makefile
> index 9066e56..bff222f 100644
> --- a/conf/Makefile
> +++ b/conf/Makefile
> @@ -15,6 +15,7 @@ install:
>  	for f in $(EXAMPLES) ; do \
>  		install -m 644 examples/$$f $(DESTDIR)$(sysconfdir)/tgt/examples ;\
>  	done
> +	install -d $(DESTDIR)$(sysconfdir)/tgt/conf.d
>  
>  .PHONY: clean
>  clean:
> diff --git a/conf/targets.conf b/conf/targets.conf
> index d485b54..1bb4435 100644
> --- a/conf/targets.conf
> +++ b/conf/targets.conf
> @@ -1,2 +1,5 @@
>  # Empty targets configuration file -- please see the package
>  # documentation directory for an example.
> +#
> +# You can drop individual config snippets into /etc/tgt/conf.d
> +include /etc/tgt/conf.d/*.conf

This also works for other distro like RHEL?
--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html



More information about the stgt mailing list