or if you have a configuration management tool lik...
# general
s
or if you have a configuration management tool like puppet or chef, take a look at its service functionality documentation