Page 1 of 1

Ubuntu LTS 14.04 shutdown script not working

PostPosted:Fri Sep 19, 2014 1:22 am
by silverspr
Hello
I'm running Ubuntu Server LTS 14.04 with OpenKm CE 6.3
The shutdown script (shutdown.sh) is not behaving the same as it does in a windows install, it does not close the open terminal window opened at startup.
Running the script from the terminal windows gives an error and the stop is aborted:
Code: Select all
[sudo] password for optimus: 
Using CATALINA_BASE: /home/optimus/openkm-ce/tomcat
Using CATALINA_HOME: /home/optimus/openkm-ce/tomcat
Using CATALINA_TMPDIR: /home/optimus/openkm-ce/tomcat/temp
Using JRE_HOME: /home/optimus/openkm-ce/java
Using CLASSPATH: /home/optimus/openkm-ce/tomcat/bin/bootstrap.jar:/home/optimus/openkm-ce/tomcat/bin/tomcat-juli.jar
Using CATALINA_PID: /home/optimus/openkm-ce/tomcat/catalina.pid
$CATALINA_PID was set but the specified file does not exist. Is Tomcat running? Stop aborted.
I think I can see the PID here
PID OpenKM
PID OpenKM
Selection_006.png (7.76 KiB) Viewed 6721 times
what's next? thanks

Re: Ubuntu LTS 14.04 shutdown script not working

PostPosted:Sat Sep 20, 2014 1:52 pm
by silverspr
Hello
My concern being if the shutdown script wasn't working, did this mean the server wasn't shutting down correctly or at all. Reviewing the catalina log file after "manually" closing the open terminal window started with the shartup.sh script appears to stop the catalina service. Perhaps the shutdown.sh not working is a non-issue?

Re: Ubuntu LTS 14.04 shutdown script not working

PostPosted:Sun Sep 21, 2014 4:17 pm
by jllort
Have you installed service as described here http://wiki.openkm.com/index.php/Config ... vice_linux ?

Re: Ubuntu LTS 14.04 shutdown script not working

PostPosted:Sat Sep 27, 2014 4:09 am
by silverspr
HI
Yes the service was installed, but if I understand correctly this is only to start the tomcat server? Which looks like a duplication of the tomcat7 server which is also running. I still have to start OpenKm by clicking on the Start Openkm icon. Clicking on the Stop OpenKm icon fails to close the terminal window opened by clicking on the Start Openkm icon. The Stop terminal window briefly opens and closes without terminating the running OpenKm terminal window. When running the shutdown.sh from within the terminal window, there are no outputs.

Re: Ubuntu LTS 14.04 shutdown script not working

PostPosted:Sat Sep 27, 2014 10:19 am
by jllort
In linux you should use start stop script as is shown in wiki. The start / stop what comes in openkm by default installer has more sense in windows scenario. In linux we recommend linux service script configuration.

Re: Ubuntu LTS 14.04 shutdown script not working

PostPosted:Sat Sep 27, 2014 4:20 pm
by silverspr
Thank you jllort
Despite searching through the wiki, it is not clear to me how to stop Openkm in Linux.
I am STARTING the application with:
./bin/catalina.sh start
sudo service tomcat start

Stopping the application with
./bin/catalina.sh stop
sudo service tomcat stop

stopping with ./bin/catalina.sh stop produces the following
Selection_008.png
Selection_008.png (23.53 KiB) Viewed 6691 times

can I simply close the terminal window created by running catalina.sh?
thanks again

Re: Ubuntu LTS 14.04 shutdown script not working

PostPosted:Sat Sep 27, 2014 5:09 pm
by silverspr
HI again
Ok not sure what I did or didn't do, but the catalina.sh start and stop commands are working again??

I am starting using catalina.sh start
I am stopping using catalina.sh stop

If this is the correct process, in both instances the terminal window outputs the tomcat service has started or stopped depending on the command run.
Whats different from the windows and the wiki, I can close the terminal window after starting catalina.sh ... I am able to log into OpenKm...so I guess I won't complain if the behavior is different!

if the above fits with how the wiki describes this (again I could not find "stop" instructions), then I guess I'm resolved!

Re: Ubuntu LTS 14.04 shutdown script not working

PostPosted:Tue Sep 30, 2014 11:17 pm
by jllort
Wiki only describes the use of service command, not starting stopping with catalina.sh. Why do you need it if you have the service command ?

Re: Ubuntu LTS 14.04 shutdown script not working

PostPosted:Sat Apr 23, 2016 5:12 pm
by jllort