View previous topic :: View next topic |
Author |
Message |
Anonymous Guest
|
Posted: Mon Jan 22, 2007 8:07 pm Post subject: levantar Icecast luego de reiniciar |
|
|
hola, he creado un usuario en mi servidor, llamado radio y su clave xxx
entonce ahì he corrido el icecast server que recibe la data para transmitir desde el simplecast, hasta ahì todo bien, pero pasa que cuando reinicio mi servidor, el servicio del icecast se me queda muerto y no inicia conla pc, como puedo hacer para que cargue asì se haya reiniciado la màquina, sobre todo que cargue con el usuario y clave correctos, pq esa vaina de que el servicio se me queda muerto por las reiniciadas me tiene mal.
Apreciarè mucho su ayuda,
Gracias por adelantado |
|
Back to top |
|
|
epe Asesor español
Joined: 27 Aug 2005 Posts: 132 Location: Quito - Ecuador
|
Posted: Wed Jan 31, 2007 4:29 pm Post subject: |
|
|
yo lo tengo puesto en el /etc/rc.local de mi servidor.
Además puedes crear un script de inicio para tu servidor, yo tengo este para algunos servidores, mis servidores son centos/redhat y pongo este script en /etc/init.d:
Code: |
#!/bin/sh
#
# icecast This shell script takes care of starting and stopping
# icecast.
#
# chkconfig: - 46 24
# description: Icecast is an Internet based broadcasting system based on the Mpeg Layer III
# streaming technology
# Source function library.
. /etc/rc.d/init.d/functions
# Source networking configuration.
. /etc/sysconfig/network
# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0
# Check that icecast.conf exists.
[ -f /etc/icecast.xml ] || exit 0
start() {
# Start daemons.
echo -n "Starting icecast: "
daemon --user root /usr/bin/icecast -b -c /etc/icecast.xml
echo
touch /var/lock/subsys/icecast
return $RETVAL
}
stop() {
# Stop daemons.
echo -n "Shutting down icecast: "
killproc icecast
echo
rm -f /var/lock/subsys/icecast
return $RETVAL
}
# See how we were called.
case "$1" in
start)
start
;;
stop)
stop
;;
reload)
;;
restart)
stop
start
;;
status)
status icecast
;;
*)
echo "Usage: $0 {start|stop|restart|reload|status}"
exit 1
esac
exit 0
|
_________________ --
http://www.NuestroServer.com
USA: +1 305 359 4495, España: +34 911 877 602
Ecuador: +593 2 600 4454
Se habla español |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2002 phpBB Group subRebel style by ktauber
|