From the error message, it looks like chkconfig cannot find the file "testing_init" inside the /etc/init.d/ directory.
Please make sure that the script "testing_init" is indeed inside the /etc/init.d/ directory and that it has the proper permissions ( e.g. 700).
HTH
-------script starts------
#!/bin/bash
#
# chkconfig: 2345 95 05
# description: helllllllllllo
echo -n Starting testing_init.......
sleep 3000
echo [ OK ]
------script ends------
and here's the output:
[EMAIL PROTECTED] init.d]# pwd
/etc/init.d
[EMAIL PROTECTED] init.d]# chkconfig --add /etc/rc.d/init.d/testing_init
error reading information on service /etc/rc.d/init.d/testing_init: No
such file or directory
[EMAIL PROTECTED] init.d]#
what coulb be the problem?
i will try to put it in rc.local.
On 4/18/06, mnisay <[EMAIL PROTECTED]> wrote:
>
> you forgot to specify parameters like which runlevel it should go
> like so
>
> chkconfig: 345 05 95
>
> ________________________________
> From: [EMAIL PROTECTED]
> [mailto: [EMAIL PROTECTED]] On Behalf Of jan gestre
> Sent: Tuesday, April 18, 2006 8:42 AM
> To: Philippine Linux Users' Group (PLUG) Technical Discussion List
> Subject: Re: [plug] autoexecute at reboot
>
>
>
>
>
> On 4/18/06, jhuniepi <[EMAIL PROTECTED]> wrote:
> > hello to all,
> >
> > when you created a script and you want it to autoexecute every reboot
> > of the pc, how do you do that? kailangan pa bang may ilagay sa loob ng
> > script?
> > system is RHEL4 at ubuntu.
> >
> > i have read chkconfig in RHEL4 and i don't fully understand it.
> > because im getting errors..
> >
> > here's the output:
> > [EMAIL PROTECTED] init.d]# pwd
> > /etc/init.d
> > [EMAIL PROTECTED] init.d]# chkconfig --add /etc/init.d/testing_init
> > error reading information on service /etc/init.d/testing_init: No such
> > file or directory
> > [EMAIL PROTECTED] init.d]#
> >
> > here's the test script:
> > #!/bin/env bash
> > echo -n Starting testing_init.......
> > sleep 3000
> > echo [ OK ]
> >
> > #script ends
>
>
> put it in rc.local
>
>
> > --
> > cj pangilinan
> > linux user, java programmer
> > _________________________________________________
> > Philippine Linux Users' Group (PLUG) Mailing List
> > [email protected] (#PLUG @ irc.free.net.ph)
> > Read the Guidelines: http://linux.org.ph/lists
> > Searchable Archives: http://archives.free.net.ph
> >
>
>
>
>
>
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.385 / Virus Database: 268.4.2/314 - Release Date: 4/16/2006
>
>
>
>
>
> --
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.1.385 / Virus Database: 268.4.2/314 - Release Date: 4/16/2006
>
> _________________________________________________
> Philippine Linux Users' Group (PLUG) Mailing List
> [email protected] (#PLUG @ irc.free.net.ph)
> Read the Guidelines: http://linux.org.ph/lists
> Searchable Archives: http://archives.free.net.ph
>
>
--
cj pangilinan
linux user, java programmer
_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
[email protected] (#PLUG @ irc.free.net.ph)
Read the Guidelines: http://linux.org.ph/lists
Searchable Archives: http://archives.free.net.ph
--
Mhac Janapin
PBTS SysAd
=============
http://mulingsilang.blogspot.com
=============
I'm an Open Source Enthusiast. c",)
Mozilla Firefox 1 - getfirefox.com
Mozilla Thunderbird 1 - mozilla.org
OpenOffice.org
=============
_________________________________________________ Philippine Linux Users' Group (PLUG) Mailing List [email protected] (#PLUG @ irc.free.net.ph) Read the Guidelines: http://linux.org.ph/lists Searchable Archives: http://archives.free.net.ph

