start-stop-daemon quoted arguments misinterpreted

前端 未结 4 548
太阳男子
太阳男子 2020-12-31 01:01

I have been trying to make an init script using start-stop-daemon. I am stuck on the arguments to the daemon. I want to keep these in a variable at the top of the script but

4条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-31 01:26

    Have you tried doing it the other way around with the quotes? Like this:

    DAEMON_OPTS='-la "/folder with space/"'
    

    I'm not sure, but that might work?

    (I would have posted this as a comment to the previous answer, if only I had had enough reputation to do so).

提交回复
热议问题