Use an array and for-loop for stops and restarts
Switch around the if and elif cases so that stopping is done first
Add status argument to the startup script
If the script is invoked as status, it will show whether Deadwood
is running or not.
Move variables to top of start script
This makes things much neater and saves space.