Indent code
Add dependencies order

Without order the restart of nagios will be called when the
configuration is not yet complete.