Use Guardian to Restart a Service

From Wiki

Jump to: navigation, search


How can I use Guardian to restart a service?


Each service monitored by Guardian can be restarted by it. In some cases you might need to have the service restarted. For example in order to load new settings you applied. In order to have Guardian restart the service all you need to do is create a file with the service name in the /svc directory for the server. For example:

touch /svc/httpd

The command above will create the /svc/httpd and Guardian will restart the webserver shortly. This could be particularly helpful when you are making changes to the service configuration. Also it is advisable to use this functionality instead of trying to manually restart the service as Guardian will do it faster anyway.

Personal tools