I'm not entirely sure where I'm messing up here, but essentially I'm trying to use the start/stop daemon to start up nginx by using the following line...
As you can see from above, it's trying to pass the path to the config file as a user parameter. Now, what is confusing me here that this single line is essentially two...
start-stop-daemon: user '/etc/nginx/nginx.conf' not found
Command: start-stop-daemon --start --quiet --pidfile /var/run/nginx.pid --group nginx --exec /usr/local/nginx/sbin/nginx -c /etc/nginx/nginx.conf -v
Anyone have any idea where I'm going wrong?
# I think this tells the daemon to do a few things (set the group for the --exec, make a pid etc)
start-stop-daemon --start --quiet --pidfile /var/run/nginx.pid --group nginx --exec
# This starts nginx and tell it which config to use, dumping a little verbose output
/usr/local/nginx/sbin/nginx -c /etc/nginx/nginx.conf -v