Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7977311
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T09:09:38+00:00 2026-06-04T09:09:38+00:00

How should I script daemontools superviser? I’ve started to use D. J. Bernsteins’ daemontools

  • 0

How should I script daemontools superviser?

I’ve started to use D. J. Bernsteins’ daemontools to keep some processes running and is working fine. But now I need to monitor a couple of additional conditions on those processes and I’ve failed to find good info on how to do that.

My scenario is that I have some processes running for a web app (pharo smalltalk virtual machines) and they respond http, each one in their port (that’s for the for loadbalance). I would like to somehow ping those to verify that they are not only running but responding to http requests. If they don’t respond in a certain way to a request for more than 30s they should be treated as crashed and simply be restarted.

Is this even possible with daemontools? if so, how should I write this script and where should I place it? or where’s the documentation on this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T09:09:40+00:00Added an answer on June 4, 2026 at 9:09 am

    The simplest solution is to create another daemontool task with a script that sleeps for 30 seconds and then tests for the presence of the service (using wget or curl for example). If the service doesn’t respond timely you can restart the service (svc -t yourapp) and/or send a notification. The run-script of the new service could look as simple as this:

    #!/bin/sh
    sleep 30
    if ! wget --quiet --timeout=5 --delete-after "http://yourapp.com/" ; then
      svc -t /etc/service/yourapp
    fi
    

    I’ve also made good experience with tools like Munin. Again you need to provide a script that provides information about the state of your image. If you setup your images with a REST service you can even provide really interesting metrics such as active sessions, inactive session, gc parameters, memory consumption, database statistics, … The tool then draws nice graphs over time and lets you specify boundaries to get notified when things behave badly.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The script below should open all the files inside the folder 'pruebaba' recursively but
I have a python script which should parse a file and produce some output
I'm using Selenium for making some work: script should click at link followed by
I have to load some url with cyrillic symbols. My script should work with
This script should work: javascript:alert('b'); It works in Opera for me, but doesn't work
I'm trying to write down a script to fetch some online data; script should
Bash script should check if a certain process is running more than a certain
This script should only pick the rows with brickurl = 'http://www.bol.com/something' But it returns
This script should change the TOP value of the specified COMMUNITY node. But it
I use the following PHP script as index for my website. This script should

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.