|
From: Leif M. <le...@ta...> - 2006-03-17 23:13:19
|
Gene,
When is the output shown in the messages log file generated. Are
those runs from when you ran "/etc/init.d/program console" and
"/etc/init.d/program start" from the command line manually?
Are you seeing the wrapper.log file in those cases?
When you reboot, the system will launch the init scripts as root
so it is unlikely that there will be any permission problems unless you
have configured a run as user in the wrapper shell script.
The only thing I can think of at the moment is the run level links.
Simply placing a script in the inid.d directory does not mean that the
script will be run at startup and shutdown You still need to set up
the system to run the script at the various system run levels. Not
sure exactly how this is configured for gentoo. Take a look at the
following pages for examples on Debian and Solaris. If you figure
out the correct way to do this on Gentoo, I'd love to set up a
Gentoo page as well.
http://wrapper.tanukisoftware.org/doc/english/launch-nix.html#boot
Cheers,
Leif
Gene wrote:
> Running my program from gentoo at the console:
> /etc/init.d/program start
> works fine but when i reboot it will not start, it won't even generate
> the wrapper.log.
> I've put in the full path to java in wrapper.conf
>
> This is what's in /var/log/messages
>
> Mar 17 01:54:21 dbmanager DBMANAGER[7077]: --> Wrapper Started as Console
> Mar 17 01:54:21 dbmanager DBMANAGER[7077]: Launching a JVM...
> Mar 17 01:54:48 dbmanager DBMANAGER[7077]: INT trapped. Shutting down.
> Mar 17 01:54:49 dbmanager DBMANAGER[7077]: <-- Wrapper Stopped
> Mar 17 01:55:04 dbmanager DBMANAGER[7180]: --> Wrapper Started as Daemon
> Mar 17 01:55:04 dbmanager DBMANAGER[7180]: Launching a JVM...
> Mar 17 01:59:25 dbmanager DBMANAGER[7180]: TERM trapped. Shutting down.
> Mar 17 01:59:26 dbmanager DBMANAGER[7180]: <-- Wrapper Stopped
>
> I'm not a linux expert so I could be just doing something very dumb!
> Thanks for any suggestions.
>
> Gene Hart
> N�HS^�隊X���'���u��<�ڂ�.���y�"��*m�x%jx.j���^�קvƩ�X�jب�ȧ��m�ݚ���v&��קv�^�+����j�Z���{az���^��h���n���)�{h�����ا��+h�(m�����Z��jY�w��ǥrg�y$���Oxḝn�mj��^��jڦ���ǫ����x%��V��iz��z�b��,���y�+��m����+-��.�ǟ�����+-��b�ا~��iz��er==
|