Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

If I have an application that requires two separate processes (front- and back-end) to run properly, is it possible to launch both of them from a single runscript and have daemontools supervise both of them and treat them as a single service? If so, how? Or would they need to be, by definition, two separate daemons?

share|improve this question
add comment

1 Answer

up vote 3 down vote accepted

As far as I know, no: It's been a while since I've used Daemontools svc stuff, but as I recall it opens a pipe between the daemontools monitoring program and the daemon being spawned -- If I remember correctly that pipe closing is how it determines that the daemon "died" and needs to restart.

Since the pipe is one program to one program there would be no way to monitor the second daemon: You would need to create a separate daemontools service for it.

share|improve this answer
add comment

Your Answer

 
discard

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.