How can I use spaces in systemd command line arguments?

前端 未结 7 1417
情话喂你
情话喂你 2021-01-17 11:52

I have a systemd unit with spaces in an argument

ExecStart=command --argument=\"text text\"

It seems that systemd does not recognize the do

7条回答
  •  伪装坚强ぢ
    2021-01-17 12:15

    systemd only seems to recognize quotes which fully wrap arguments; i.e.

    ExecStart=command "--argument=text text"

    works but

    ExecStart=command --argument="text text"

    does not. I just ran into this issue and filed #624 about it.

提交回复
热议问题