Re: [CentOS] Assistance with startup script

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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@xxxxxxxxxx> wrote:
> >>
> >>> <snip>

> Whenever I'm troubleshooting startup files, or shell scripts in  
> general, I find that running it like
> [root@xxxxxxx 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@xxxxxxx 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

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux