Use an array and nested for-loops 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.