Re: [supervise] <defunct>
Sebastian Rahlf <[email protected]> Tue, 10 Jul 2007 10:21:09 +0200
| Newsgroups | gmane.comp.djb.syslog |
|---|---|
| Message-ID | <[email protected]> |
Daryl Tester schrieb: > rahlf wrote: > >>> Daryl Tester wrote: > >>>> It looks like your run scripts for the service and logger isn't >>>> executable (missing exec bits on the permissions). > >>> That should read "possibly missing exec bits on the permissions" - >>> there are several things that can cause this - faulty, missing >>> interpreter on the #! line, missing #! line, inappropriate CRLF's >>> in the file ... > >> Hi Daryl, >> >> permissions and CRLFs look fine and shell executes the scripts without >> complaining. > > In the next email you wrote: > > -------------------------------------------------- > exec 2>&1 > ulimit -v $MAXMEM > ulimit -a > echo "------- start by supervise -------" > PATH=/command:$PATH:/usr/local/bin > umask 077 > /bin/date | /usr/bin/mail -s "`uname` zopeInstanz13-restart!" root > exec setuidgid zope /web/zopeInstanz13/bin/runzope > -------------------------------------------------- > > If this script is verbatim, then you have no "#!" line at the > beginning (I did say check for "missing #! line"). bash will > be able to execute this script, but exec*() (which is what > supervise uses) won't. You will need to add "#!/bin/sh" (or > equivalent) to the first line of the script. > > Hi Daryl, I ommited a part at the beginning as it contains a quite lengthy comment - among which the a '#!/bin/sh' was hidden. However, there was also a comment line preceeding it which did not strike me as odd. Having removed that line, daemontools now seems to run just fine. Thanks a bunch! Sebastian -- Sebastian Rahlf Webentwickler [email protected] Tel.: +49.228.42150.75 Galileo Press GmbH Rheinwerkallee 4 - 53227 Bonn - Germany Tel.: +49.228.42.150.0 (Zentrale) .77 (Fax) http://www.galileo-press.de/ Geschäftsführer: Tomas Wehren, Ralf Kaulisch, Rainer Kaltenecker HRB 8363 Amtsgericht Bonn