Rohit Bajaj
asked on
what does daemon command do in linux
HI,
I came across the following command :
why to run a command using daemon ?
Thanks
I came across the following command :
exec="mvn jetty:run -DFLOCK_APPS_CONFIG=${FLOCK_APPS_CONFIG} -DPORT=${PORT}"
daemon --user=$user $exec &
what does it do ?why to run a command using daemon ?
Thanks
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
But when i run this script i dont see anything running
jetty doesnt run which ideally it should as the exec runs the jetty server
from inside the directory /opt/flock-snippets
I had put cd /opt/flock-snippets above the commands
doing ps -Af | grep jetty does not show anything running.
but if i dont use daemon it works