got it:

[EMAIL PROTECTED] init.d]# pwd
/etc/rc.d/init.d
[EMAIL PROTECTED] init.d]# chkconfig --add testing_init
[EMAIL PROTECTED] init.d]# cat testing_init
#!/bin/bash
#
# chkconfig: 2345 95 05
# description: helllllllllllo

echo -n Starting testing_init.......
sleep 3
echo                                  [    OK    ]

[EMAIL PROTECTED] init.d]#

when i did this last time my script doesn't contain two line comments
(# chkconfig: 2345 95 05
 # description: description blah blah blah)

that's why hindi din sya gumana kaya nilagay ko yung absolute path.

pero nung nilagay ko na wlang absolute path, at may two line comments
na sa script, gumana na...

parang mas ok na ilagay sa rc.local kung gusto mo lang nmn e magstart
sya every boot ng pc.
pero kung gusto mo yung style na # service <script>
(start|stop|restart), mas maganda enroll sa chkconfig.
di ko lang sure kung gagana yung # service <script>
(start|stop|restart) kung sa rc.local lang sya nakalagay..


thanks to all...
God bless us..

On 4/18/06, Edel SM <[EMAIL PROTECTED]> wrote:
> On 4/18/06, jhuniepi <[EMAIL PROTECTED]> wrote:
> > [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]#
>
> have you tried without the absolute path? ie, chkconfig --add testing_init
>
> --edel
> _________________________________________________
> 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

Reply via email to