Skip to content

Instantly share code, notes, and snippets.

@marczhermo
Created July 29, 2014 22:25
Show Gist options
  • Select an option

  • Save marczhermo/10b3110333bccac20fc9 to your computer and use it in GitHub Desktop.

Select an option

Save marczhermo/10b3110333bccac20fc9 to your computer and use it in GitHub Desktop.
bash with -x
I don't know what's causing this problem in particular, however in general if you're having troubles with a script (such as an init script) it's worth running it under a shell with the -x option (eg /bin/bash -x /etc/init.d/php5-fpm start), which will print out a full trace of the script's execution, which will almost certainly make it obvious what's going wrong.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment