Starting icecast2: start-stop-daemon: unable to set gid to 1004 (Operation not permitted)
sudo /etc/init.d/icecast2 start
<icecast> <limits> <clients>100</clients> <sources>2</sources> <threadpool>5</threadpool> <queue-size>524288</queue-size> <client-timeout>30</client-timeout> <header-timeout>15</header-timeout> <source-timeout>10</source-timeout> <burst-on-connect>1</burst-on-connect> <burst-size>65535</burst-size> </limits> <authentication> <source-password>pass</source-password> <relay-password>pass</relay-password> <admin-user>admin</admin-user> <admin-password>pass</admin-password> </authentication> <hostname>localhost</hostname> <listen-socket> <port>8000</port> </listen-socket> <fileserve>1</fileserve> <mount> <mount-name>/play</mount-name> <charset>CP1251</charset> </mount> <paths> <logdir>/home/DIR/logs</logdir> <webroot>/home/DIR/web</webroot> <adminroot>/home/DIR/admin</adminroot> <alias source="/" dest="/status.xsl"/> </paths> <logging> <accesslog>access.log</accesslog> <errorlog>error.log</errorlog> <loglevel>3</loglevel> <logsize>10000</logsize> </logging> <security> <chroot>0</chroot> <changeowner> <user>icecast2</user> <group>icecast</group> </changeowner> </security> </icecast>
<ezstream> <url>http://localhost:8000/play</url> <sourcepassword>pass</sourcepassword> <format>MP3</format> <filename>/home/DIR/playlist.txt</filename> <shuffle>0</shuffle> <playlist_program>0</playlist_program> <svrinfoname>Name</svrinfoname> <svrinfourl>site</svrinfourl> <svrinfogenre>Ofther</svrinfogenre> <svrinfodescription>Description</svrinfodescription> <svrinfobitrate>128</svrinfobitrate> <svrinfochannels>2</svrinfochannels> <svrinfosamplerate>44100</svrinfosamplerate> <svrinfopublic>1</svrinfopublic> <reencode> <enable>1</enable> <encdec> <format>MP3</format> <match>.mp3</match> <decode>lame -f --preset cbr 128 --bitwidth 16 "@T@" -</decode> </encdec> </reencode> </ezstream>
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."