dependencies.html (1382B)
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> 2 <html> 3 <head> 4 <title>runit -service dependencies</title> 5 </head> 6 <body> 7 <a href="http://smarden.org/pape/">G. Pape</a><br> 8 <a href="index.html">runit</a><br> 9 <hr> 10 <h1>runit - service dependencies</h1> 11 <hr> 12 <i>runit</i>'s service supervision resolves dependencies for service daemons 13 designed to be run by a supervisor process automatically. 14 The service daemon (or the corresponding <tt>run</tt> scripts) should behave 15 as follows: 16 <ul> 17 <li>before providing the service, check if all services it depends on are 18 available. 19 If not, exit with an error, the supervisor will then try again. 20 <li>write all logs through <i>runit</i>'s logging facility. 21 The <a href="runsv.8.html">runsv</a> program takes care that all logs for 22 the service are written safely to disk. 23 Therefore there's no need to depend on a system logging service. 24 <li>optionally when the service is told to become down, take down other 25 services that depend on this one after disabling the service. 26 </ul> 27 If you want to run service daemons that do not support service supervision 28 as described above, please refer to 29 <a href="http://smarden.org/pape/djb/daemontools/noinit.html">this page</a> 30 about service dependencies I wrote some time ago. 31 <hr> 32 <address><a href="mailto:pape@smarden.org"> 33 Gerrit Pape <pape@smarden.org> 34 </a></address> 35 </body> 36 </html>