Auto startup
Posted:
Wed Mar 10, 2010 4:15 pm
by flekschas
Hi,
I just set up omero and I'm wondering if there's a way to start omero automatically after booting.
Re: Auto startup
Posted:
Fri Mar 12, 2010 12:40 pm
by flekschas
It's runnning on opensuse 11.1
Re: Auto startup
Posted:
Mon Mar 15, 2010 7:39 am
by cxallan
Various people have posted init scripts. For example:
viewtopic.php?f=4&t=367A SuSE specific one would be a little different obviously but that should work.
Re: Auto startup
Posted:
Wed Mar 17, 2010 12:25 pm
by flekschas
Thank you.
I'll have a look at this and post the suse version when it's working
Re: Auto startup
Posted:
Mon Mar 29, 2010 12:37 pm
by flekschas
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