We're Hiring!

omero init script

General user discussion about using the OMERO platform to its fullest. Please ask new questions at https://forum.image.sc/tags/omero
Please note:
Historical discussions about OMERO. Please look for and ask new questions at https://forum.image.sc/tags/omero

There are workflow guides for various OMERO functions on our help site - http://help.openmicroscopy.org

You should find answers to any basic questions about using the clients there.

omero init script

Postby uestra » Thu Mar 04, 2010 10:13 am

Hello,

i use an init script to start Omero 4.1.1 on Ubuntu 9.10.
Code: Select all
#! /bin/sh
### BEGIN INIT INFO
# Provides:          omero_start
# Required-Start:    $remote_fs $syslog
# Required-Stop:     $remote_fs $syslog
# Default-Start:     2
# Default-Stop:      0
# Short-Description: omero initscript
# Description:       startet den omero server
#
### END INIT INFO

# echo 0 > /proc/sys/net/ipv4/tcp_window_scaling

case "$1" in
  start)
        sudo -u omero /home/omero/omero_dist/bin/omero admin start ;;
  stop)
        sudo -u omero /home/omero/omero_dist/bin/omero admin stop ;;
  status)
        # gibt 0 status zurueck wenn node ping erfolgreich
        sudo -u omero /home/omero/omero_dist/bin/omero admin status ;;
  *)
        echo 'usage: /etc/init.d/omero_start start|stop|status' ;;
esac

The Script is linked wit 'sudo update-rc.d initscript defaults'
This works, but not with OMERO.web, Apache and mod_python.
I must push
Code: Select all
bin/omero web settings

every time, when i reboot the Server.

Best regards
Mike
uestra
 
Posts: 12
Joined: Wed Feb 24, 2010 9:51 am

Re: omero init script

Postby bernhard » Fri Mar 05, 2010 2:46 pm

Hi Mike!

When you're running the webclient application under Apache2/mod_python the service is quite independent of omero admin, as far as I know. Omero admin only starts the Omero db in this case. To administrate the webclient you'd use the init.d/apache2 script.

Hope that helps! Bernhard
bernhard
 
Posts: 37
Joined: Mon Jun 22, 2009 7:18 am

Re: omero init script

Postby uestra » Tue Mar 09, 2010 6:29 pm

This helps me to understand (i hope so).
I have removed the Ubuntu 9.10 System. I think mod_python for Python-2.6 in 9.10 is the Problem.

Now it works on Ubuntu 8.04 LTS. I don't like apt-pinning, but here it must be.

Thanks
Mike
uestra
 
Posts: 12
Joined: Wed Feb 24, 2010 9:51 am


Return to User Discussion

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron