Re: [supervise] <defunct>
Daryl Tester <[email protected]> Tue, 10 Jul 2007 17:32:13 +0930
| Newsgroups | gmane.comp.djb.syslog |
|---|---|
| Message-ID | <[email protected]> |
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. -- Regards, Daryl Tester "Bad kitty. Stop plotting evil." -- http://www.pvponline.com/article/3328/sun-may-20