erlyvideo server doesn't start automatically after reboot
Posted
by
electroid
on Server Fault
See other posts from Server Fault
or by electroid
Published on 2012-10-15T07:10:06Z
Indexed on
2012/10/15
15:40 UTC
Read the original article
Hit count: 306
I have installed erlyvideo server on ubuntu 9.10 karmic koala. Everything works fine, but after server reboot I have to start erlyvideo server manually with /etc/init.d/erlyvideo start. I try allready update-rc.d and I think erlyvideo by default should start automaticaly. Any help will be appreciated.
Here erlyvideo startup script located in /etc/init.d/erlyvideo:
#!/bin/sh
### BEGIN INIT INFO
# Provides: erlyvideo
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts the erlyvideo streaming server
# Description: starts the erlyvideo using erlang system
### END INIT INFO
case "$1" in
start)
cd /opt/erlyvideo && ./bin/erlyvideo "$1"
;;
stop)
cd /opt/erlyvideo && ./bin/erlyvideo "$1"
;;
restart)
cd /opt/erlyvideo && ./bin/erlyvideo "$1"
;;
soft-restart)
cd /opt/erlyvideo && ./bin/erlyvideo "$1"
;;
upgrade)
cd /opt/erlyvideo && ./bin/erlyvideo "$1"
;;
reconfigure)
cd /opt/erlyvideo && ./bin/erlyvideo "$1"
;;
reboot)
cd /opt/erlyvideo && ./bin/erlyvideo "$1"
;;
ping)
cd /opt/erlyvideo && ./bin/erlyvideo "$1"
;;
console)
cd /opt/erlyvideo && ./bin/erlyvideo "$1"
;;
attach)
cd /opt/erlyvideo && ./bin/erlyvideo "$1"
;;
attach-erl)
cd /opt/erlyvideo && ./erts-5.8.4/bin/erl -name [email protected] -remsh [email protected]
;;
*)
echo $"Usage: $0 {start|stop|restart|soft-restart|upgrade|reboot|ping|console|attach}"
exit 1
esac
exit 0
And I have found S91erlyvideo in /etc/rc2.d next to S91apache2 which starts just fine on every reboot.
© Server Fault or respective owner