Page 1 of 1

omero init script

PostPosted: Thu Mar 04, 2010 10:13 am
by uestra
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

Re: omero init script

PostPosted: Fri Mar 05, 2010 2:46 pm
by bernhard
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

Re: omero init script

PostPosted: Tue Mar 09, 2010 6:29 pm
by uestra
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