Hi Frank

Did you try to install wrapper once karaf is started ?
Do you have the JDK define in wrapper.conf ?

Regards
JB

> Le 5 mai 2021 à 15:49, Frank 'S Jegers <frank.sjeg...@ikan.be> a écrit :
> 
> Hi,
>  
> I'm trying to start karaf using the wrapper script on AIX 7.2.
> Generated the wrapper files by executing :
> karaf/bin/shell wrapper:install -n almagent59 -d "IKAN\ ALM\ 5.9\ Agent" -D 
> "IKAN\ ALM\ 5.9\ Agent\ Daemon"
>  
> Then created a link to the sysV script in /etc/rc.d/init.d/
> sudo ln -s /opt/ikan/almagent59/daemons/agent/karaf/bin/almagent59-service 
> /etc/rc.d/init.d/
>  
> When I run it with "sudo /etc/rc.d/init.d/almagent59-service start", I get 
> the output :
> Starting IKAN ALM 5.9 Agent...
>  
> and then nothing : no Java process, no wrapper.log, no lock file, no 
> karaf.pid file
>  
> In karaf/etc/almagent59-wrapper.conf, I set "wrapper.console.loglevel=DEBUG"
> Then I get the additional output :
> wrapper  | Working directory set to: /opt/ikan/almagent59/daemons/agent/karaf
> wrapper  | Spawning intermediate process...
>  
> I edited the almagent59-service, and echoed the command that gets executed, 
> which is :
> /opt/ikan/almagent59/daemons/agent/karaf/bin/almagent59-wrapper 
> /opt/ikan/almagent59/daemons/agent/karaf/etc/almagent59-wrapper.conf 
> wrapper.syslog.ident=almagent59 
> wrapper.pidfile=/opt/ikan/almagent59/daemons/agent/karaf/almagent59.wrapper.pid
>  wrapper.daemonize=TRUE
>  
> When I launch Karaf using karaf/bin/karaf, then Karaf starts ok and our 
> application seems to function.
>  
> I've followed similar steps as above to launch karaf using the wrapper script 
> on several Debian and Redhat based Linuxes, using both the sysV script and 
> the systemd unit file, and managed to get it working there. But not so on AIX.
>  
> Any ideas ?
>  
> Karaf version : 4.2.8
>  
> Java version : 
> openjdk version "11.0.11" 2021-04-20
> OpenJDK Runtime Environment AdoptOpenJDK-11.0.11+9 (build 11.0.11+9)
> OpenJDK 64-Bit Server VM AdoptOpenJDK-11.0.11+9 (build 11.0.11+9, mixed mode)
>  
> AIX version : AIX 7.2 7200-03-02-1846
>  
> Thank you,
> Frank 'S Jegers

Reply via email to