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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 18 Jun 2013 14:42:03 +0100
James Page <james.page@xxxxxxxxxx> 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@xxxxxxxxxx>
> ---
>  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@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux SCSI]     [Linux RAID]     [Linux Clusters]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]

  Powered by Linux