Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question

It's been a while since I used daemontools, but try separating the -d and -u (svc -d ... ; sleep 5 ; svc -u ...).

Also note that if the daemon your service doesn't respect the TERM signal (what -d sends by default) you can try svc -k to send KILL instead. If I remember right the supervise daemon will then see that the service is down and restart it on its own.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.