start-stop-daemon错误

Abd*_*liq 3 ubuntu command-line

我在跑步

sstart-stop-daemon --start --exec $ DAEMON $ ARGS

在Ubuntu上命令并获得以下错误

start-stop-daemon:找不到用户`p'

谁能发现问题?

阿卜杜勒·卡利克

eph*_*ent 9

你应该使用

start-stop-daemon --start --exec "${DAEMON}" -- ${ARGS}
Run Code Online (Sandbox Code Playgroud)

确保start-stop-daemon不是试图解释任何,$ARGS而是将所有这些直接传递给$DAEMON.