* [gentoo-commits] gentoo-x86 commit in media-sound/shoutcast-server-bin/files: 1.9.8-sc_serv.conf.patch shoutcast.2
@ 2009-07-22 15:38 Samuli Suominen (ssuominen)
0 siblings, 0 replies; only message in thread
From: Samuli Suominen (ssuominen) @ 2009-07-22 15:38 UTC (permalink / raw
To: gentoo-commits
ssuominen 09/07/22 15:38:18
Added: 1.9.8-sc_serv.conf.patch shoutcast.2
Log:
Don't run as root wrt #165331.
(Portage version: 2.2_rc33/cvs/Linux x86_64)
Revision Changes Path
1.1 media-sound/shoutcast-server-bin/files/1.9.8-sc_serv.conf.patch
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/shoutcast-server-bin/files/1.9.8-sc_serv.conf.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/shoutcast-server-bin/files/1.9.8-sc_serv.conf.patch?rev=1.1&content-type=text/plain
Index: 1.9.8-sc_serv.conf.patch
===================================================================
--- sc_serv.conf.orig 2007-02-28 21:35:24.000000000 +0200
+++ sc_serv.conf 2009-07-22 17:42:45.000000000 +0300
@@ -50,17 +50,17 @@
; Note: on win32 systems if no path is specified the location is
; in the same dir as the executable, on *nix systems it is in the
; current directory.
-LogFile=sc_serv.log
+LogFile=/dev/null
; RealTime displays a status line that is updated every second
; with the latest information on the current stream (*nix and win32
; console systems only)
-RealTime=1
+RealTime=0
; ScreenLog controls whether logging is printed to the screen or not
; on *nix and win32 console systems. It is useful to disable this when
; running servers in background without their own terminals. Default is 1
-ScreenLog=1
+ScreenLog=0
; ShowLastSongs specifies how many songs to list in the /played.html
; page. The default is 10. Acceptable entries are 1 to 20.
@@ -91,7 +91,7 @@
; W3CLog describes the name of the logfile for W3C logging. Default logfile is
; sc_w3c.log, in the same directory wherever the DNAS gets started from.
-W3CLog=sc_w3c.log
+W3CLog=/dev/null
; ***************************
@@ -153,9 +153,9 @@
; ContentDir specifies the directory location on disk of where to stream
; on-demand content from. Subdirectories are supported as of DNAS 1.8.2.
-; Default is ./content, meaning a directory named content in the same directory
+; Default is ./content/, meaning a directory named content in the same directory
; as where sc_serv was invoked from.
-; ContentDir=./content
+ContentDir=/opt/shoutcast/content/
; IntroFile can specify a mp3 file that will be streamed to listeners right
; when they connect before they hear the live stream.
1.1 media-sound/shoutcast-server-bin/files/shoutcast.2
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/shoutcast-server-bin/files/shoutcast.2?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/shoutcast-server-bin/files/shoutcast.2?rev=1.1&content-type=text/plain
Index: shoutcast.2
===================================================================
#!/sbin/runscript
depend() {
need localmount
}
checkconfig() {
if ! [ -f /etc/shoutcast/sc_serv.conf ]; then
eerror "Can't find /etc/shoutcast/sc_serv.conf!"
return 1
fi
return 0
}
start() {
checkconfig || return 1
ebegin "Starting SHOUTcast"
start-stop-daemon --background --start --quiet --user shoutcast \
--group nogroup --make-pidfile --pidfile /var/run/sc_serv.pid \
--exec /opt/bin/sc_serv /etc/shoutcast/sc_serv.conf
eend $?
}
stop() {
ebegin "Stopping SHOUTcast"
start-stop-daemon --stop --pidfile /var/run/sc_serv.pid --name sc_serv
eend $?
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-07-22 15:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-22 15:38 [gentoo-commits] gentoo-x86 commit in media-sound/shoutcast-server-bin/files: 1.9.8-sc_serv.conf.patch shoutcast.2 Samuli Suominen (ssuominen)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox