linux-nvme.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] nvme-cli: Fix systemd service script use of CONNECT_ARGS env var
@ 2019-12-19 19:05 James Smart
  2020-01-06 19:22 ` James Smart
  2020-01-07 17:04 ` Keith Busch
  0 siblings, 2 replies; 3+ messages in thread
From: James Smart @ 2019-12-19 19:05 UTC (permalink / raw)
  To: linux-nvme; +Cc: James Smart

In testing, some environments are not properly expanding CONNECT_ARGS.

Change systemd service file use of CONNECT_ARGS to be encapsulated by
apostrophes and parens.

Signed-off-by: James Smart <jsmart2021@gmail.com>
---
 nvmf-autoconnect/systemd/nvmf-connect@.service | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nvmf-autoconnect/systemd/nvmf-connect@.service b/nvmf-autoconnect/systemd/nvmf-connect@.service
index 10fb3aa..c60f146 100644
--- a/nvmf-autoconnect/systemd/nvmf-connect@.service
+++ b/nvmf-autoconnect/systemd/nvmf-connect@.service
@@ -11,4 +11,4 @@ Requires=nvmf-connect.target
 [Service]
 Type=simple
 Environment="CONNECT_ARGS=%i"
-ExecStart=/bin/sh -c "nvme connect-all --quiet `/bin/echo -e $CONNECT_ARGS`"
+ExecStart=/bin/sh -c "nvme connect-all --quiet `/bin/echo -e '${CONNECT_ARGS}'`"
-- 
2.13.7


_______________________________________________
linux-nvme mailing list
linux-nvme@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-nvme

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] nvme-cli: Fix systemd service script use of CONNECT_ARGS env var
  2019-12-19 19:05 [PATCH] nvme-cli: Fix systemd service script use of CONNECT_ARGS env var James Smart
@ 2020-01-06 19:22 ` James Smart
  2020-01-07 17:04 ` Keith Busch
  1 sibling, 0 replies; 3+ messages in thread
From: James Smart @ 2020-01-06 19:22 UTC (permalink / raw)
  To: James Smart, linux-nvme

ping...

On 12/19/2019 11:05 AM, James Smart wrote:
> In testing, some environments are not properly expanding CONNECT_ARGS.
>
> Change systemd service file use of CONNECT_ARGS to be encapsulated by
> apostrophes and parens.
>
> Signed-off-by: James Smart <jsmart2021@gmail.com>
> ---
>   nvmf-autoconnect/systemd/nvmf-connect@.service | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/nvmf-autoconnect/systemd/nvmf-connect@.service b/nvmf-autoconnect/systemd/nvmf-connect@.service
> index 10fb3aa..c60f146 100644
> --- a/nvmf-autoconnect/systemd/nvmf-connect@.service
> +++ b/nvmf-autoconnect/systemd/nvmf-connect@.service
> @@ -11,4 +11,4 @@ Requires=nvmf-connect.target
>   [Service]
>   Type=simple
>   Environment="CONNECT_ARGS=%i"
> -ExecStart=/bin/sh -c "nvme connect-all --quiet `/bin/echo -e $CONNECT_ARGS`"
> +ExecStart=/bin/sh -c "nvme connect-all --quiet `/bin/echo -e '${CONNECT_ARGS}'`"


_______________________________________________
linux-nvme mailing list
linux-nvme@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-nvme

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] nvme-cli: Fix systemd service script use of CONNECT_ARGS env var
  2019-12-19 19:05 [PATCH] nvme-cli: Fix systemd service script use of CONNECT_ARGS env var James Smart
  2020-01-06 19:22 ` James Smart
@ 2020-01-07 17:04 ` Keith Busch
  1 sibling, 0 replies; 3+ messages in thread
From: Keith Busch @ 2020-01-07 17:04 UTC (permalink / raw)
  To: James Smart; +Cc: linux-nvme

On Thu, Dec 19, 2019 at 11:05:34AM -0800, James Smart wrote:
> In testing, some environments are not properly expanding CONNECT_ARGS.
> 
> Change systemd service file use of CONNECT_ARGS to be encapsulated by
> apostrophes and parens.
> 
> Signed-off-by: James Smart <jsmart2021@gmail.com>

Patch applied, sorry for the delay.

_______________________________________________
linux-nvme mailing list
linux-nvme@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-nvme

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-01-07 17:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-19 19:05 [PATCH] nvme-cli: Fix systemd service script use of CONNECT_ARGS env var James Smart
2020-01-06 19:22 ` James Smart
2020-01-07 17:04 ` Keith Busch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).