Hi,
I just set up omero and I'm wondering if there's a way to start omero automatically after booting.
#!/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
Return to Installation and Deployment
Users browsing this forum: No registered users and 1 guest