--- 
author: 
  email: ash@firemirror.com
  keyid: bfc7465ebdca5337
  name: Ash Berlin
categories: []

date: 2007-10-01T08:11:30Z
guid: EAB847AE-6FF5-11DC-AAA7-B7CF8A320E61
modified: 2007-10-01T08:11:30Z
raw: "-----BEGIN PGP SIGNED MESSAGE-----\r\nHash: SHA1\r\n\r\nI use daemontools as described in the 2006 Catalyst Advent Calendar [FastCGI Deployment with Bells on][day4]\r\n\r\nBasically I have\r\n\r\n    lang:bash\r\n    /service/myapp-fcgi1\r\n    /service/myapp-fcgi2\r\n\r\nEach `run` script is the same bar the port number it listens on. I tried to find a way to have the same service directory symlinked into `/service` twice and have the script detect which one it was invoked as, but it seems that daemontools does not provide this info (as it follows the symlinks properly before executing the `run` script)\r\n\r\nPretty straight forward from then on.\r\n\r\n[day4]: http://www.catalystframework.org/calendar/2006/4\r\n-----BEGIN PGP SIGNATURE-----\r\nVersion: GnuPG v1.4.7 (Darwin)\r\n\r\niD8DBQFHAKtuv8dGXr3KUzcRAp1yAJ9BfRcDO1jIwdYy7MkkBzcmnrooxQCcDfRi\r\ncufzklQdedPSbnPw35sP48s=\r\n=ehLU\r\n-----END PGP SIGNATURE-----\n"
signed: 1
summary: " I use daemontools as described in the 2006 Catalyst …"
tags: []

text: "\nI use daemontools as described in the 2006 Catalyst Advent Calendar\nFastCGI Deployment with Bells on [1]\n\nBasically I have\n\nEach run script is the same bar the port number it listens on. I tried\nto find a way to have the same service directory symlinked into /service\ntwice and have the script detect which one it was invoked as, but it\nseems that daemontools does not provide this info (as it follows the\nsymlinks properly before executing the run script)\n\nPretty straight forward from then on.\n\n-- \n [1] http://www.catalystframework.org/calendar/2006/4\n"
title: "Re: Re: Catalyst with Lighttpd"
type: markdown
uri: http://perlitist.com/comments/E6ABD362-6EB3-11DC-8EA1-D6A1BB7FECD7/A4A95C28-6F67-11DC-AD2E-FCF13CDAA5CE/EAB847AE-6FF5-11DC-AAA7-B7CF8A320E61
xhtml: "<p>I use daemontools as described in the 2006 Catalyst Advent Calendar <a href=\"http://www.catalystframework.org/calendar/2006/4\">FastCGI Deployment with Bells on</a></p><p>Basically I have</p><pre><code><span class=\"Normal\">/service/myapp-fcgi1</span><span class=\"Normal\">\n</span><span class=\"Normal\">/service/myapp-fcgi2</span><span class=\"Normal\">\n</span></code></pre><p>Each <code>run</code> script is the same bar the port number it listens on. I tried to find a way to have the same service directory symlinked into <code>/service</code> twice and have the script detect which one it was invoked as, but it seems that daemontools does not provide this info (as it follows the symlinks properly before executing the <code>run</code> script)</p><p>Pretty straight forward from then on.</p>"
