[CentOS] Assistance with startup script

Thu Jun 1 18:51:41 UTC 2006
William L. Maltby <BillsCentOS at triad.rr.com>

On Thu, 2006-06-01 at 14:39 -0400, Michael Grinnell wrote:
> On Jun 1, 2006, at 1:58 PM, Sam Drinkard wrote:
> 
> > Will McDonald wrote:
> >
> >> On 01/06/06, Sam Drinkard <sam at wa4phy.net> wrote:
> >>
> >>> <snip>

> Whenever I'm troubleshooting startup files, or shell scripts in  
> general, I find that running it like
> [root at foo.com init.d]# sh -x httpd start
> helps.  It runs the script file and traces each line, so you can see  
> where it fails.
> 
> If it were a bad shebang line, I would expect to see (under CentOS 4.3)
> [root at foo.com init.d]# ./httpd start
> -bash: ./httpd: /bin/bashr: bad interpreter: No such file or directory

I still think that either the symlink points to a non-existent target
or, as another post said, bad acl/owner/permissions. But it could be
from a command issued inside the script that points to something bad?
Then the -x trace would nail it.

> 
> HTH
> 
> Michael
> <snip sig stuff>

-- 
Bill
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.centos.org/pipermail/centos/attachments/20060601/8551d54e/attachment-0004.sig>