• Ubuntu LTS 14.04 shutdown script not working

  • Problems with installing OpenKM? No problemo, the solution is closer than you think.
Problems with installing OpenKM? No problemo, the solution is closer than you think.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #29980  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 6720 times
what's next? thanks
 #29999  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?
 #30080  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.
 #30081  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.
 #30082  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 6690 times

can I simply close the terminal window created by running catalina.sh?
thanks again
 #30083  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!
 #30109  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 ?

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.