[ome-users] Running Omero as service in Ubuntu

Mailly Philippe philippe.mailly at snv.jussieu.fr
Mon Sep 3 15:05:16 BST 2012


Hi,
I'm trying to configure omero starting as service in ubuntu. I have put 
in /etc/init.d the corresponding files :

/etc/init.d/omero


#! /bin/sh
### BEGIN INIT INFO
# Provides:          omero admin
# Required-Start:    $remote_fs $syslog
# Required-Stop:     $remote_fs $syslog
# Default-Start:     2
# Default-Stop:      0
# Short-Description: omero initscript
# Description:       start the omero server
#
### END INIT INFO

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

case "$1" in
   start)
         sudo -u mcib /opt/OMERO/OMERO.server/bin/omero admin start ;;
   stop)
         sudo -u mcib /opt/OMERO/OMERO.server/bin/omero admin stop ;;
   status)
         sudo -u mcib /opt/OMERO/OMERO.server/bin/omero admin diagnostics ;;
   *)
         echo 'usage: /etc/init.d/omero start|stop|status' ;;
esac


and

/etc/init.d/omeroweb

#! /bin/sh
### BEGIN INIT INFO
# Provides:          omeroweb
# Required-Start:    $remote_fs $syslog
# Required-Stop:     $remote_fs $syslog
# Default-Start:     2
# Default-Stop:      0
# Short-Description: omero initscript
# Description:       start the omero web server
#
### END INIT INFO

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

case "$1" in
   start)
         sudo -u mcib /opt/OMERO/OMERO.server/bin/omero web start ;;
   stop)
         sudo -u mcib /opt/OMERO/OMERO.server/bin/omero web stop ;;
   status)
         sudo -u mcib /opt/OMERO/OMERO.server/bin/omero web status ;;
   *)
         echo 'usage: /etc/init.d/omeroweb start|stop|status' ;;
esac

After running sudo update-rc.d omeroweb defaults
I get the message :
update-rc.d: warning: omeroweb start runlevel arguments (2 3 4 5) do not 
match LSB Default-Start values (2)
update-rc.d: warning: omeroweb stop runlevel arguments (0 1 6) do not 
match LSB Default-Stop values (0)
  Adding system startup for /etc/init.d/omeroweb ...
    /etc/rc0.d/K20omeroweb -> ../init.d/omeroweb
    /etc/rc1.d/K20omeroweb -> ../init.d/omeroweb
    /etc/rc6.d/K20omeroweb -> ../init.d/omeroweb
    /etc/rc2.d/S20omeroweb -> ../init.d/omeroweb
    /etc/rc3.d/S20omeroweb -> ../init.d/omeroweb
    /etc/rc4.d/S20omeroweb -> ../init.d/omeroweb
    /etc/rc5.d/S20omeroweb -> ../init.d/omeroweb

And then sudo update-rc.d omero defaults

I get this error message :

sudo update-rc.d omero defaults
update-rc.d: warning: omero start runlevel arguments (2 3 4 5) do not 
match LSB Default-Start values (2)
update-rc.d: warning: omero stop runlevel arguments (0 1 6) do not match 
LSB Default-Stop values (0)
  System start/stop links for /etc/init.d/omero already exist.

How can I put the omero admin and omero web services ??
Thanks

Philippe





-------------- next part --------------
A non-text attachment was scrubbed...
Name: philippe_mailly.vcf
Type: text/x-vcard
Size: 406 bytes
Desc: not available
URL: <http://lists.openmicroscopy.org.uk/pipermail/ome-users/attachments/20120903/d301b49a/attachment.vcf>


More information about the ome-users mailing list