Friday, October 7, 2011

systemd Service won't start? Try --skip-redirect

On Fedora 15, I was trying to start the yum-installed nginx.  I was aware of potential port issues, so I put it on a unique port.  Something was still wrong with my configuration, but I couldn't tell what, because
service nginx start
wasn't reporting any useful information, and neither were /var/log/messages or the nginx logs.
Thanks to http://forums.fedoraforum.org/showthread.php?t=270346, I was able to run
service nginx restart --skip-redirect
The --skip-redirect flag tells it to not redirect output to systemctl, so you can actually see the error messages from whatever configuration issue you had and fix them.

No comments: