I run
sstart-stop-daemon --start --exec $ DAEMON $ ARGS
on ubuntu and get the following error
start-stop-daemon: user `p 'not found
Can anyone spot the problem?
Abdul Halik
You have to use
start-stop-daemon --start --exec "${DAEMON}" -- ${ARGS}
to ensure that it start-stop-daemondoes not attempt to interpret any of $ARGS, but instead transfers all of them directly to $DAEMON.
start-stop-daemon
$ARGS
$DAEMON
ephemient is right, but before passing arguments it should appear --. So the above code will not look like this:
--
start-stop-daemon --start --exec /etc/init.d/mysql -- -u abc
, $DAEMON $ARGS . , - -u p.
, :
$ start-stop-daemon --start --exec /etc/init.d/mysql -u abc start-stop-daemon: user `abc' not found (Success)
(Except that I also get a successful response).
Source: https://habr.com/ru/post/1712602/More articles:Unsafe C # code snippet with pointers - pointersSQL Server занимает много времени, чтобы возвращать данные в ColdFusion при использовании Flex - flexWebsite bar graphs - designPointers, primitives, and properties in Objective-C classes - pointersWhy does the NSView framework method return incorrect results? - formattingUsing CheckBox to select rows in ASP.NET GridView - c #How to save session information when redirecting from one subdomain to another? - redirectGetting maven to launch the pier (Tapestry Tutorial) - javaColdFusion XLS Export and Character Encoding - coldfusionDuplicate views - objective-cAll Articles