We're Hiring!

Auto startup

Having a problem deploying OMERO? 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

The OMERO.server installation documentation begins here and you can find OMERO.web deployment documentation here.

Auto startup

Postby flekschas » Wed Mar 10, 2010 4:15 pm

Hi,
I just set up omero and I'm wondering if there's a way to start omero automatically after booting.
F Lekschas
BCRT - Charite
flekschas
 
Posts: 13
Joined: Wed Mar 10, 2010 4:11 pm

Re: Auto startup

Postby cxallan » Wed Mar 10, 2010 10:35 pm

Which platform?
cxallan
Site Admin
 
Posts: 509
Joined: Fri May 01, 2009 8:07 am

Re: Auto startup

Postby flekschas » Fri Mar 12, 2010 12:40 pm

It's runnning on opensuse 11.1
F Lekschas
BCRT - Charite
flekschas
 
Posts: 13
Joined: Wed Mar 10, 2010 4:11 pm

Re: Auto startup

Postby cxallan » Mon Mar 15, 2010 7:39 am

Various people have posted init scripts. For example:

viewtopic.php?f=4&t=367

A SuSE specific one would be a little different obviously but that should work.
cxallan
Site Admin
 
Posts: 509
Joined: Fri May 01, 2009 8:07 am

Re: Auto startup

Postby flekschas » Wed Mar 17, 2010 12:25 pm

Thank you.
I'll have a look at this and post the suse version when it's working
F Lekschas
BCRT - Charite
flekschas
 
Posts: 13
Joined: Wed Mar 10, 2010 4:11 pm

Re: Auto startup

Postby flekschas » Mon Mar 29, 2010 12:37 pm

Okay my script looks like this

Code: Select all
#!/bin/sh
### BEGIN INIT INFO
# Provides: omero
# Required-Start: $remote_fs $syslog $network
# Should-Start: $named $syslog $time
# Required-Stop: $remote_fs $syslog
# Should-Stop: $named $syslog $time
# Default-Start:  2 3 5
# Default-Stop:   0 1 6
# Short-Description: Start Omero DB
# Description:    Start Omero Database to use the OMERO.client
### END INIT INFO

# rc.status
. /etc/rc.status
rc_reset

# Variables

case "$1" in
    start)
        echo "Starting Omero DB"
   sudo -u omero /srv/omero/omero_dist/bin/omero admin start
   rc_status -v
        ;;
    stop)
   echo "Shutting down Omero DB"
   sudo -u omero /srv/omero/omero_dist/bin/omero admin stop
   rc_status -v
        ;;
    restart)
   $0 stop
   $0 start
   rc_status
        ;;
    *)
    echo "Usage: $0 {start|stop|restart}"
    exit 1
esac
rc_exit
F Lekschas
BCRT - Charite
flekschas
 
Posts: 13
Joined: Wed Mar 10, 2010 4:11 pm


Return to Installation and Deployment

Who is online

Users browsing this forum: No registered users and 1 guest