Hello Roy,

Why don't you just add call the script at boot time by adding it to
/etc/rc.local?
Something like
/sbin/sh <path-to-script>


Alex

> yum install chkconfig
>
> ---> follow screen instructions to install it ...
>
>
> On Mon, 09 Aug 2010 11:48:46 +0300, roy mukasa <[email protected]> wrote:
>
>> When i use the chkconfig command that i know it says
>> service <script name.sh> does not support chkconfig
>>
>> On 9 August 2010 11:39, Joseph Abdi <[email protected]> wrote:
>>> /sbin/chkconfig <script-name> on
>>>
>>>
>>> On Mon, 09 Aug 2010 11:26:16 +0300, roy mukasa <[email protected]>
>>> wrote:
>>>
>>>> Hey guys have a quick one, ok after i have written a script in linux
>>>> and i would want it to start automatically when a computer is
>>>> restarted, what can i do? i Have managed to add the script to
>>>> /etc/init.d/ then i have also run the command chmod +x <script name>
>>>> to make it executable. So what else can i do to make the script run
>>>> automatically when the computer is restarted?
>>>>
>>>> Regards
>>>
>>>
>>> --
>>> Should you require technical assistance,
>>> please do not hesitate to contact us directly at
>>> http://www.support311.com
>>>
>>> Kind Regards,
>>>
>>> Abdi Joseph
>>> Jolis | Support | Dept.
>>>
>>> "100% Customer Service! - 100% of the Time!"
>>>
>>> USA
>>> +--------------------------------
>>> 710 North Tucker Blvd.
>>> Suite 610A St. Louis,
>>> MO 63101 USA
>>> USA:   +151.43.794409
>>> Fax:    +1-309-418-9893
>>> --------------------------------+
>>>
>>> UGANDA:
>>> +--------------------------------
>>> Plot 22 Namanve, Akright III Estate
>>> P.O. BOX 22930, Kampala,
>>> Uganda, EA.
>>> Tel1:    +256.792.JOSEPH
>>> Tel2:    +256.752.JOSEPH
>>> Tel3:    +256.712.JOSEPH
>>> Tel4:   +256.312.280643
>>> Tel5:   +256.414.577227
>>> Fax:    +1.309-418-9893
>>> --------------------------------+
>>>
>>> LIVE SUPPORT:
>>> +--------------------------------
>>> http://www.support311.com
>>> http://www.jolis.net
>>> --------------------------------+
>>> _______________________________________________
>>> LUG mailing list
>>> [email protected]
>>> http://kym.net/mailman/listinfo/lug
>>>
>>> LUG is generously hosted by INFOCOM http://www.infocom.co.ug/
>>>
>>> All Archives can be found at
>>> http://www.mail-archive.com/[email protected]/
>>>
>>> The above comments and data are owned by whoever posted them (including
>>> attachments if any). The List's Host is not responsible for them in any
>>> way.
>>> ---------------------------------------
>>>
>>>
>>
>>
>>
>
>
> --
> Should you require technical assistance,
> please do not hesitate to contact us directly at http://www.support311.com
>
> Kind Regards,
>
> Abdi Joseph
> Jolis | Support | Dept.
>
> "100% Customer Service! - 100% of the Time!"
>
> USA
> +--------------------------------
> 710 North Tucker Blvd.
> Suite 610A St. Louis,
> MO 63101 USA
> USA:   +151.43.794409
> Fax:    +1-309-418-9893
> --------------------------------+
>
> UGANDA:
> +--------------------------------
> Plot 22 Namanve, Akright III Estate
> P.O. BOX 22930, Kampala,
> Uganda, EA.
> Tel1:    +256.792.JOSEPH
> Tel2:    +256.752.JOSEPH
> Tel3:    +256.712.JOSEPH
> Tel4:   +256.312.280643
> Tel5:   +256.414.577227
> Fax:    +1.309-418-9893
> --------------------------------+
>
> LIVE SUPPORT:
> +--------------------------------
> http://www.support311.com
> http://www.jolis.net
> --------------------------------+
> _______________________________________________
> LUG mailing list
> [email protected]
> http://kym.net/mailman/listinfo/lug
>
> LUG is generously hosted by INFOCOM http://www.infocom.co.ug/
>
> All Archives can be found at http://www.mail-archive.com/[email protected]/
>
> The above comments and data are owned by whoever posted them (including
> attachments if any). The List's Host is not responsible for them in any
> way.
> ---------------------------------------
>
>


_______________________________________________
LUG mailing list
[email protected]
http://kym.net/mailman/listinfo/lug

LUG is generously hosted by INFOCOM http://www.infocom.co.ug/

All Archives can be found at http://www.mail-archive.com/[email protected]/

The above comments and data are owned by whoever posted them (including 
attachments if any). The List's Host is not responsible for them in any way.
---------------------------------------

Reply via email to