Created by: nicklangridge
Only try to create log/PID dirs if the server is starting. The server control script may be used for other purposes than starting the server,
e.g. the REST installer uses the server control script to generate an init script, at which time we should not create these dirs.
The installer works properly
Tested in my sandbox
Server log/PID dirs now only created on server start operations