Red Hat General - Script startup not happening

This is Interesting: Free IT Magazines  
Home > Archive > Red Hat General > January 2004 > Script startup not happening





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Script startup not happening
Michael Thompson

2004-01-23, 7:08 pm

Hi ,



I have a script that runs fine when I have typed its' name on the
command line such as

/etc/rc.d/init.d/scriptname start

This starts it fine without problems. Doing tail /var/log/messages
does not show any errors. I have set it to start at boot up, but it
dosnt run. I need to enter the script name manually before it runs.

If I do a chkconfig --list it shows it is registered in run levels
2345, which is where it should be. It is scheduled to start on system
boot by doing

/usr/sbin/setup and going to system setup, and setting it there. I
have also checked in the RH9 GUI version of the system startup util.

Anyone got any ideas?


--

Best regards,
Michael (mike@thompsonmike.co.uk)

Why put off till tomorrow what you'll never do anyway?

http://www.thompsonmike.co.uk/
PGP KeyID := 0xA9547E32

'To see a world in a grain of sand
And heaven in a wild flower
To hold infinity in the palm of your hand
And eternity in an hour'

Using TheBat! Version 2.00.6
Running On Windows XP (2600, Service Pack 1)
Sent From newsgroups

Paul Lutus

2004-01-23, 7:08 pm

Michael Thompson wrote:
quote:

> Hi ,
>
>
>
> I have a script that runs fine when I have typed its' name on the
> command line such as
>
> /etc/rc.d/init.d/scriptname start
>
> This starts it fine without problems. Doing tail /var/log/messages
> does not show any errors. I have set it to start at boot up, but it
> dosnt run.



How do you know it doesn't run? What is the evidence?
quote:

> I need to enter the script name manually before it runs.



How do you know it does run? What is the evidence?
quote:

>
> If I do a chkconfig --list it shows it is registered in run levels
> 2345, which is where it should be. It is scheduled to start on system
> boot by doing
>
> /usr/sbin/setup and going to system setup, and setting it there. I
> have also checked in the RH9 GUI version of the system startup util.
>
> Anyone got any ideas?



Just one. To get help, you have to provide some useful information.

What is in the script? What does it do? Which user must run it? How did you
insert it into the boot sequence? If you add logging lines to the script,
are they executed and do you have log entries?

And so forth, and so on.

--
Paul Lutus
http://www.arachnoid.com

chris@nospam.com

2004-01-23, 7:08 pm

On Mon, 20 Oct 2003 22:17:29 +0100, Michael Thompson
<news@thompsonmike.co.uk> wrote:
quote:

>Hi ,
>
>
>
>I have a script that runs fine when I have typed its' name on the
>command line such as
>
>/etc/rc.d/init.d/scriptname start
>
>This starts it fine without problems. Doing tail /var/log/messages
>does not show any errors. I have set it to start at boot up, but it
>dosnt run. I need to enter the script name manually before it runs.
>
>If I do a chkconfig --list it shows it is registered in run levels
>2345, which is where it should be. It is scheduled to start on system
>boot by doing
>
>/usr/sbin/setup and going to system setup, and setting it there. I
>have also checked in the RH9 GUI version of the system startup util.
>
>Anyone got any ideas?




Is the script assuming permissions or a path that may not exist?
jaster

2004-01-23, 7:08 pm

On Sun, 30 Nov 2003 18:58:25 +0000, chris while doing time wrote:
quote:

> On Mon, 20 Oct 2003 22:17:29 +0100, Michael Thompson
> <news@thompsonmike.co.uk> wrote:
>
>
>
> Is the script assuming permissions or a path that may not exist?



Assuming the right permissions shouldn't the script start from
/etc/rc.d/rc2.d/scriptname ? Ditto for rc3.d - rc4.d depending on which
runlevel you are using. I use scriptname = k99scriptname so it executes
after all other system boot processes, ie, /etc/rc.d/rc3.d/k99scriptname
chris@nospam.com

2004-01-23, 7:08 pm

On Sun, 30 Nov 2003 21:19:31 GMT, jaster <jaster@home.net> wrote:
quote:

>On Sun, 30 Nov 2003 18:58:25 +0000, chris while doing time wrote:
>
>
>Assuming the right permissions shouldn't the script start from
>/etc/rc.d/rc2.d/scriptname ? Ditto for rc3.d - rc4.d depending on which
>runlevel you are using. I use scriptname = k99scriptname so it executes
>after all other system boot processes, ie, /etc/rc.d/rc3.d/k99scriptname



Why are you using K99 if you actually want it to start? (Doesn't the
'K99' imply run the initscript with stop permissions?
chris@nospam.com

2004-01-23, 7:08 pm

On Mon, 20 Oct 2003 22:17:29 +0100, Michael Thompson
<news@thompsonmike.co.uk> wrote:
quote:

>Hi ,
>
>
>
>I have a script that runs fine when I have typed its' name on the
>command line such as
>
>/etc/rc.d/init.d/scriptname start
>
>This starts it fine without problems. Doing tail /var/log/messages
>does not show any errors. I have set it to start at boot up, but it
>dosnt run. I need to enter the script name manually before it runs.
>
>If I do a chkconfig --list it shows it is registered in run levels
>2345, which is where it should be. It is scheduled to start on system
>boot by doing
>
>/usr/sbin/setup and going to system setup, and setting it there. I
>have also checked in the RH9 GUI version of the system startup util.
>
>Anyone got any ideas?




Is the script assuming permissions or a path that may not exist?
jaster

2004-01-23, 7:09 pm

On Sun, 30 Nov 2003 18:58:25 +0000, chris while doing time wrote:
quote:

> On Mon, 20 Oct 2003 22:17:29 +0100, Michael Thompson
> <news@thompsonmike.co.uk> wrote:
>
>
>
> Is the script assuming permissions or a path that may not exist?



Assuming the right permissions shouldn't the script start from
/etc/rc.d/rc2.d/scriptname ? Ditto for rc3.d - rc4.d depending on which
runlevel you are using. I use scriptname = k99scriptname so it executes
after all other system boot processes, ie, /etc/rc.d/rc3.d/k99scriptname
chris@nospam.com

2004-01-23, 7:09 pm

On Sun, 30 Nov 2003 21:19:31 GMT, jaster <jaster@home.net> wrote:
quote:

>On Sun, 30 Nov 2003 18:58:25 +0000, chris while doing time wrote:
>
>
>Assuming the right permissions shouldn't the script start from
>/etc/rc.d/rc2.d/scriptname ? Ditto for rc3.d - rc4.d depending on which
>runlevel you are using. I use scriptname = k99scriptname so it executes
>after all other system boot processes, ie, /etc/rc.d/rc3.d/k99scriptname



Why are you using K99 if you actually want it to start? (Doesn't the
'K99' imply run the initscript with stop permissions?
Kaare Schou

2004-01-23, 7:09 pm

Your script might depend on environment variables which are not present when
running boot rc's.
Try unset all environment variables with

#unset $(env|awk -F= '{print $1}')

run your start script and see what it complains about.

--Kaare

<chris@nospam.com> wrote in message
news:hffksvgs66sglvcafd1vlf1b00l04rvvir@
4ax.com...
quote:

> On Mon, 20 Oct 2003 22:17:29 +0100, Michael Thompson
> <news@thompsonmike.co.uk> wrote:
>
>
>
> Is the script assuming permissions or a path that may not exist?




Kaare Schou

2004-01-23, 7:09 pm

Your script might depend on environment variables which are not present when
running boot rc's.
Try unset all environment variables with

#unset $(env|awk -F= '{print $1}')

run your start script and see what it complains about.

--Kaare

<chris@nospam.com> wrote in message
news:hffksvgs66sglvcafd1vlf1b00l04rvvir@
4ax.com...
quote:

> On Mon, 20 Oct 2003 22:17:29 +0100, Michael Thompson
> <news@thompsonmike.co.uk> wrote:
>
>
>
> Is the script assuming permissions or a path that may not exist?




chris@nospam.com

2004-01-23, 7:11 pm

On Mon, 20 Oct 2003 22:17:29 +0100, Michael Thompson
<news@thompsonmike.co.uk> wrote:
quote:

>Hi ,
>
>
>
>I have a script that runs fine when I have typed its' name on the
>command line such as
>
>/etc/rc.d/init.d/scriptname start
>
>This starts it fine without problems. Doing tail /var/log/messages
>does not show any errors. I have set it to start at boot up, but it
>dosnt run. I need to enter the script name manually before it runs.
>
>If I do a chkconfig --list it shows it is registered in run levels
>2345, which is where it should be. It is scheduled to start on system
>boot by doing
>
>/usr/sbin/setup and going to system setup, and setting it there. I
>have also checked in the RH9 GUI version of the system startup util.
>
>Anyone got any ideas?




Is the script assuming permissions or a path that may not exist?
jaster

2004-01-23, 7:11 pm

On Sun, 30 Nov 2003 18:58:25 +0000, chris while doing time wrote:
quote:

> On Mon, 20 Oct 2003 22:17:29 +0100, Michael Thompson
> <news@thompsonmike.co.uk> wrote:
>
>
>
> Is the script assuming permissions or a path that may not exist?



Assuming the right permissions shouldn't the script start from
/etc/rc.d/rc2.d/scriptname ? Ditto for rc3.d - rc4.d depending on which
runlevel you are using. I use scriptname = k99scriptname so it executes
after all other system boot processes, ie, /etc/rc.d/rc3.d/k99scriptname
chris@nospam.com

2004-01-23, 7:11 pm

On Sun, 30 Nov 2003 21:19:31 GMT, jaster <jaster@home.net> wrote:
quote:

>On Sun, 30 Nov 2003 18:58:25 +0000, chris while doing time wrote:
>
>
>Assuming the right permissions shouldn't the script start from
>/etc/rc.d/rc2.d/scriptname ? Ditto for rc3.d - rc4.d depending on which
>runlevel you are using. I use scriptname = k99scriptname so it executes
>after all other system boot processes, ie, /etc/rc.d/rc3.d/k99scriptname



Why are you using K99 if you actually want it to start? (Doesn't the
'K99' imply run the initscript with stop permissions?
Kaare Schou

2004-01-23, 7:11 pm

Your script might depend on environment variables which are not present when
running boot rc's.
Try unset all environment variables with

#unset $(env|awk -F= '{print $1}')

run your start script and see what it complains about.

--Kaare

<chris@nospam.com> wrote in message
news:hffksvgs66sglvcafd1vlf1b00l04rvvir@
4ax.com...
quote:

> On Mon, 20 Oct 2003 22:17:29 +0100, Michael Thompson
> <news@thompsonmike.co.uk> wrote:
>
>
>
> Is the script assuming permissions or a path that may not exist?




Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com