BandaAncha.eu

  • 🔍 en 📰 artículos ⏎
  • 🔍 en 💬 foros ⏎
  • 🔍 en 👇 este 💬 foro ⏎
  • 🔍 en 👇 este 💬 tema ⏎
Regístrate Regístrate Identifícate Identifícate

problema con inicio de icecast2

dnight

buenas a todos.
he instalado un servidor en debian mientras me llega el otro router..
pero tengo un problema con el script de inicio de icecast... tiene unas líneas buggeadas, y como de scrips no entiendo mucho aqui os dejo el contenido de /etc/default/icecast2
y el de /etc/init.d/icecast2 (el que tiene las líneas buggeadas.

primer archivo: el script de inicio (buggeado):
#! /bin/sh
### BEGIN INIT INFO
# Provides: icecast2
# Required-Start: $remote_fs $network
# Required-Stop: $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the icecast audio streaming server daemon
### END INIT INFO
#
# icecast2
#
# Written by Miquel van Smoorenburg .
# Modified for Debian
# by Ian Murdock .
#
# Further modified by Keegan Quinn
# for use with Icecast 2
#

PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/bin/icecast2
NAME=icecast2
DESC=icecast2

test -x $DAEMON || exit 0

# Defaults
CONFIGFILE="/etc/icecast2/icecast.xml"
CONFIGDEFAULTFILE="/etc/default/icecast2"
USERID=icecast2
GROUPID=icecast
ENABLE="false"

# Reads config file (will override defaults above)
[ -r "$CONFIGDEFAULTFILE" ] && . $CONFIGDEFAULTFILE

if [ "$ENABLE" != "true" ]; then
echo "$NAME daemon disabled - read $CONFIGDEFAULTFILE."
exit 0
fi

set -e

case "$1" in
start)
echo -n "Starting $DESC: "
start-stop-daemon --start --quiet --chuid $USERID:$GROUPID \
--exec $DAEMON -- -b -c $CONFIGFILE
echo "$NAME."
;;
stop)
echo -n "Stopping $DESC: "
start-stop-daemon --stop --oknodo --quiet --exec $DAEMON
echo "$NAME."
;;
reload|force-reload)
echo "Reloading $DESC configuration files."
start-stop-daemon --stop --signal 1 --quiet --exec $DAEMON
;;
restart)
echo -n "Restarting $DESC: "
start-stop-daemon --stop --oknodo --quiet --exec $DAEMON
sleep 1
start-stop-daemon --start --quiet --chuid $USERID:$GROUPID \
--exec $DAEMON -- -b -c $CONFIGFILE
echo "$NAME."
;;
*)
echo "Usage: $0 {start|stop|restart|reload|force-reload}" >&2
exit 1
;;
esac

exit 0

archivo 2: default/icecast2
# Defaults for icecast2 initscript
# sourced by /etc/init.d/icecast2
# installed at /etc/default/icecast2 by the maintainer scripts

#
# This is a POSIX shell fragment
#

# Full path to the server configuration file
CONFIGFILE="/etc/icecast2/icecast.xml"

# Name or ID of the user and group the daemon should run under
USERID=icecast2
GROUPID=icecast

# Edit /etc/icecast2/icecast.xml and change at least the passwords.
# Change this to true when done to enable the init.d script
ENABLE=true
saludos y gracias.

vukits

¿qué tutorial has seguido para instalarlo?

🗨️ 14
dnight

buenas.

ninguno.. soi experimentado en esto de las emisoras de radio por internet, solo he añadido el repo donde está el icecast, configurado por el xml pero al darle /etc/init.d/icecast2 start me devuelve errores en varias líneas, si las necesitas te las pego.. asi a pronto, recuerdo que la 19 es una de ellas

un saludo.

🗨️ 13
vukits

sí, por favor.

pega las lineas que te salen de error ;)

🗨️ 12
dnight

buenas.

estas son, el daemon está activado pero al estar el script buggeado dice que no lo esta

: command not foundt2: line 4:
: command not foundt2: line 8:
: command not foundt2: line 11:
: command not foundt2: line 15:
: command not foundt2: line 19:
icecast2 daemon disabled - read /etc/default/icecast2.

saludos.

🗨️ 11
vukits
🗨️ 10
dnight
🗨️ 9
dnight
vukits
🗨️ 7
dnight
dnight
🗨️ 5
vukits
dnight
🗨️ 1
vukits
BocaDePez
BocaDePez