xxxxxxxxxx
Check your PATH variable. The service command for me is located in /usr/sbin/service so make sure /usr/sbin is added to your PATH
I see you got it. Don't mind if I post it as an answer ? Also , FYI for the future, after you edit .zshrc file or .bashrc ( for bash ) file use source command ( or if that's dash or ksh shell , use . ) . For example, source ~/.bashrc That will reload the configuration