Switch around the if-then cases in the start/restart section
Fix the test for the invocation argument in stop/restart section