How can I use spaces in systemd command line arguments?

前端 未结 7 1428
情话喂你
情话喂你 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:09

    Try escaping the space, like so:

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

    (The quotes may or may not be necessary.)

提交回复
热议问题