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

Re: rc script not running at boot time



----- Original Message -----
From: "m roth" <m roth 5-cent us>
To: "General Red Hat Linux discussion list" <redhat-list redhat com>
Sent: Thursday, August 26, 2010 12:39:37 PM GMT -08:00 US/Canada Pacific
Subject: RE: rc script not running at boot time

Hugh E Cruickshank wrote:
> From: James D. Parra Sent: August 26, 2010 11:46
>>
>> However, upon reboot the service does not start.
>
> I have encounter the same problem and here is what I have done:
>
> 1. Add the following lines to the top of you script file:
>
>    # chkconfig:    235 99 01
>    # description:  what ever you want here
>
> 2. Run chkconfig to "add" the script:
>
>    chkconfig  --add /etc/rc.d/rc3.d/S50pgstartstop
>
> A Google search on chkconfig should supply you with the reasoning
> behind this (much more eloquently than I can).
>
> You might also want to add the following line to your script file:
>
>    touch /var/lock/subsys/S50pgstartstop
>
> IIRC this was required in order to the shutdown to work correctly.

This is all very odd. chkconfig, IIUC, merely creates the symbolic links
in /etc/rc.d/rc.[0-6] to /etc/init.d/<scriptname>. If there's already one
in /etc/rc.d/rc3.d that begins with an S, it should have been found by the
startup scripts.

Perhaps you could try chkconfig pgstartstop off, then on, and see if that
works.

I assume that you've checked /var/log/messages for anything occuring
during startup.

          mark

~~~~~~~~

Thank you Mark and Hugh;

Ran 'chkconfig pgstartstop off' then 'on' and it now appears in chkconfig --list;

pgstartstop     0:off   1:off   2:on    3:on    4:on    5:on    6:off
<snip>

I'll let you know how the reboot goes.

Best,

James
 



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