 |
|
 |
|
|
 |
Script startup not happening |
 |
 |
|
|
01-24-04 12:08 AM
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
[ Post a follow-up to this message ]
|
|
|
 |
|
 |
|
 |
|
|
 |
Re: Script startup not happening |
 |
 |
|
|
01-24-04 12:08 AM
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
[ Post a follow-up to this message ]
|
|
|
 |
|
 |
|
 |
|
|
 |
Re: Script startup not happening |
 |
 |
|
|
01-24-04 12:08 AM
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?
[ Post a follow-up to this message ]
|
|
|
 |
|
 |
|
 |
|
|
 |
Re: Script startup not happening |
 |
 |
|
|
01-24-04 12:08 AM
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
[ Post a follow-up to this message ]
|
|
|
 |
|
 |
|
 |
|
|
 |
Re: Script startup not happening |
 |
 |
|
|
01-24-04 12:08 AM
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?
[ Post a follow-up to this message ]
|
|
|
 |
|
 |
|
 |
|
|
 |
Re: Script startup not happening |
 |
 |
|
|
01-24-04 12:08 AM
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?
[ Post a follow-up to this message ]
|
|
|
 |
|
 |
|
 |
|
|
 |
Re: Script startup not happening |
 |
 |
|
|
01-24-04 12:09 AM
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
[ Post a follow-up to this message ]
|
|
|
 |
|
 |
|
 |
|
|
 |
Re: Script startup not happening |
 |
 |
|
|
01-24-04 12:09 AM
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?
[ Post a follow-up to this message ]
|
|
|
 |
|
 |
|
 |
|
|
 |
Re: Script startup not happening |
 |
 |
|
|
01-24-04 12:09 AM
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?
[ Post a follow-up to this message ]
|
|
|
 |
|
 |
|
 |
|
|
 |
Re: Script startup not happening |
 |
 |
|
|
01-24-04 12:09 AM
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?
[ Post a follow-up to this message ]
|
|
|
 |
|
|
|
|
Sponsored Links |
 |
 |
|
|
 |
All times are GMT. The time now is 01:36 PM. |
 |
|
|
 |
|
 |
|
|
 |
|
Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
|
|
|
|
Medical and Health forum | Computer Games Reviews | Graphics design forum
|
 |
|
 |
|