Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

/etc/init.d/icecast2 for centos

Discussion in 'cPanel Developers' started by cookiesunshinex, Dec 27, 2008.

  1. cookiesunshinex

    cookiesunshinex Well-Known Member

    Joined:
    Jun 10, 2005
    Messages:
    77
    Likes Received:
    0
    Trophy Points:
    156
    Does anyone have a init.d script for icecast2 on centos 4.7 running WHM?

    When I installed icecast 2.3.2 using the RPM, there is no /etc/init.d/icecast2 and there is no sample for centos.

    Any help is appreciated.
     
  2. cookiesunshinex

    cookiesunshinex Well-Known Member

    Joined:
    Jun 10, 2005
    Messages:
    77
    Likes Received:
    0
    Trophy Points:
    156
    Someone posted a response on the xiph.org discussion forum.

    They suggested that I've got a problem with my RPM. Here's their Fedora startup script /etc/init.d/icecast2

    Any reason this wouldn't work on CentOS 4.7?

    How do I troubleshoot an RPM, what could be wrong with it, how to repair?

    Code:
    #!/bin/sh
    #
    # icecast      This shell script takes care of starting and stopping
    #              the icecast multimedia streaming systen.
    #
    # chkconfig: - 85 15
    # description: icecast is a multimedia streaming daemon. It is used to \
    #              relay and offer multimedia streaming content.
    # processname: icecast
    # pidfile: /var/run/icecast/icecast.pid
    # config: /etc/icecast.xml
    
    # Source function library.
    . /etc/rc.d/init.d/functions
    
    [ -x /usr/bin/icecast ] || exit 0
    
    # See how we were called.
    case "$1" in
      start)
            # Start daemon.
            echo -n $"Starting icecast streaming daemon: "
            daemon "/usr/bin/icecast -b -c /etc/icecast.xml > /dev/null"
            RETVAL=$?
            echo
            [ $RETVAL -eq 0 ] && touch /var/lock/subsys/icecast
            ;;
      stop)
            # Stop daemon.
            echo -n $"Shutting down icecast streaming daemon: "
            killproc icecast
            RETVAL=$?
            echo
            [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/icecast
            ;;
      status)
            status icecast
            RETVAL=$?
            ;;
      restart)
            $0 stop
            $0 start
            ;;
      reload)
            echo -n $"Reloading icecast: "
            killproc icecast -HUP
            RETVAL=$?
            echo
            ;;
      condrestart)
            [ -f /var/lock/subsys/icecast ] && restart || :
            ;;
      *)
            echo $"Usage: $0 {start|stop|status|restart|reload}"
            RETVAL=1
            ;;
    esac
    
    exit $RETVAL 
    
     
  3. Voltar

    Voltar Well-Known Member

    Joined:
    Apr 30, 2007
    Messages:
    267
    Likes Received:
    1
    Trophy Points:
    168
    Location:
    Bakersfield, California
    I don't see a reason why that wouldn't work on CentOS.


    As for troubleshooting the rpm, have you tried removing/reinstalling it? Is there anything else besides the missing init script?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. cookiesunshinex

    cookiesunshinex Well-Known Member

    Joined:
    Jun 10, 2005
    Messages:
    77
    Likes Received:
    0
    Trophy Points:
    156
    I originally had icecast installed on the server a couple of years ago by downloading it to the server and installing it manually.

    Then I uninstalled it, and used the RPM method so that it would be kept up to date properly.

    I used these instructions:
    http://www.linuxhelp.net/forums/index.php?showtopic=8226&pid=27924&st=0&#entry27924

    The only difference is that I downloaded the latest RPM, not the one in the instructions as they are slightly dated.

    The icecast server works perfectly fine and I don't see any other problems other than the fact that a /etc/init.d/icecast2 file was not created.
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice