How can I restart a service designed to run under supervise

Posted by Terrence Brannon on Server Fault See other posts from Server Fault or by Terrence Brannon
Published on 2010-05-06T18:05:13Z Indexed on 2010/05/06 18:08 UTC
Read the original article Hit count: 251

Filed under:

I have written a service designed to run under daemontools supervise.

Because the run script refreshes a source code repository:

   git pull
   pod_server  # serve up docs on source code via the web

I desire for the script to restart every 5 minutes.

The manpage for svc says that it applies all options to the service, so I thought this would work in cron:

*/5 * * * * svc -du etc/pod_server

but it does not seem to be refreshing to source code repo with new pushes

© Server Fault or respective owner

Related posts about server