RE: rc script not running at boot time

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

 



From: James D. Parra Sent: August 26, 2010 11:46
> 
> However, upon reboot the service does not start.

Hi James:

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.

HTH

Regards, Hugh

-- 
Hugh E Cruickshank, Forward Software, www.forward-software.com 

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list


[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux