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 6728895
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T10:13:27+00:00 2026-05-26T10:13:27+00:00

I have a structure like this ————- |Supervisor | ————- | ————- | Child1

  • 0

I have a structure like this

-------------
|Supervisor |
-------------
      |
-------------
|  Child1   |
-------------
      |
-------------
|  Child2   |
-------------

In this structure, child1 is supervised and it spawns child2. What I need is to be able to restart child1 when child2 crashes/exits. Which would be the best way to achieve 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-05-26T10:13:28+00:00Added an answer on May 26, 2026 at 10:13 am

    If you allow Child1 to crash when Child2 crashes, your existing supervisor
    will simply restart Child1, thus also restarting Child2.

    But that depends upon Child1 crashing when Child2 crashes. Another option
    is to insert another supervisor in the process tree:

    Change this:                          Into this:
    
    +------------+                      +------------+
    | Supervisor |                      | Supervisor |
    +------------+                      +------------+
          |                                   |
    +------------+                      +------------+
    |   Child1   |  New supervisor ---> | Supervisor |
    +------------+                      +------------+
          |                               |      |
    +------------+              +------------+ +---------+
    |   Child2   |              |   Child1   | |  Child2 |
    +------------+              +------------+ +---------+
          |                                        |
     other service                            other service
    

    The new supervisor handles just the two children as their own service, allowing
    the death of either one to influence the other in configurable ways.

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

Sidebar

Related Questions

We have tree structure like this: <Tree> <child1> <child2> <child2> </child1> </Tree> Here the
I have a structure like this.... UITableViewController -> UITableViewCell -> UIView I need the
I have a structure like this: <ul id="mycustomid"> <li><a>Item A</a> <ul class="children"> <li><a>Child1 of
I have a structure like this: <ul> <li>text1</li> <li>text2</li> <li>text3</li> </ul> How do I
I have xml structure like this: <Group id=2 name=Third parentid=0 /> <Group id=6 name=Five
Currently I have a structure like this: A | +--B | +--C It's mapped
I have a SVN structure like this: /Projects /Project1 /Project2 /someFolder /Project3 /Project4 I
I have a folder structure like this: /some_folder /tmp /tmp/foo /tmp/foo/fu * /tmp/bar /tmp/bar/bah
I have a folder structure like this: /articles .index.php .second.php .third.php .fourth.php If I'm
If I have a table structure like this: Transaction [TransID, ...] Document [DocID, TransID,

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.