|
From: Leif M. <le...@ta...> - 2004-03-16 15:17:22
|
Yuval, What exactly did you set up? Assuming that you have an application installed at /usr/lib/myapp and a script at /usr/lib/myapp/bin/myapp.sh. You should have created a symbolic link in your /etc/init.d directory as follows: Make sure you are root, then execute ln -s /etc/init.d/myapp /usr/lib/myapp/bin/myapp.sh Test this script by running the following: /etc/init.d/myapp You should see a message telling you that the script requires a command. Next, create the following links to setup your application to start and stop correctly with the various system run levels: ln -s /etc/rc0.d/K20myapp /etc/init.d/myapp ln -s /etc/rc1.d/K20myapp /etc/init.d/myapp ln -s /etc/rc6.d/K20myapp /etc/init.d/myapp ln -s /etc/rc2.d/S20myapp /etc/init.d/myapp ln -s /etc/rc3.d/S20myapp /etc/init.d/myapp ln -s /etc/rc4.d/S20myapp /etc/init.d/myapp ln -s /etc/rc5.d/S20myapp /etc/init.d/myapp Once again, test the links by running the following: /etc/init.d/myapp If this does not work then it will not work when you reboot your system. At this point we have verified that the links are all setup correctly and the script should be run at the appropriate time. If it does not work after rebooting then try enabling debug output in the wrapper.conf file with wrapper.debug=true and then see if you get any output in the wrapper.log file. Cheers, Leif Yuval Zantkeren wrote: >Hi, > >I'm trying to install the wrapper as daemon in Red Hat 9 Linux but with no >luck. >I don't have the command update-rc and also the chkconfig do not work with >the wrapper. >So I tried to make symbolic links from the script to /etc/init.d and than a >symbolic links to the >startup levels, but when the system go up and I see the services that starts >I see the name of the service I installed but with no status, >all the services that succeed show ok but the wrapper one do not show >nothing (blank). > >Please Advise, > >Regards, > >Yuval > > |