1. Like wigry said, first ensure you've got the right cmd by testing it manually.
You've actually used 'status' when it should be 'start' (or restart).
2. use code tags to post code
https://www.linuxquestions.org/quest...do=bbcode#code
3. I'd recommend using consistent numbering; you're code starts talking about adserver2, then echoes "server 1" ; that's just going to confuse people, inc you ....
4. Read those links in my post #4; they'll show you how to construct a shell script.