Page 1 of 1

Subsonic init script change for RedHat - Fedora rpms

PostPosted: Mon Mar 15, 2010 12:48 pm
by vachaun22
I'm submitting a request for a change to the fedora/redhat rpms installation.

Rather than have the startup options being changed in the subsonic init script where incorrect editing can have catastrophic effects on the service starting, I recommend altering the script in the following way:

-SUBSONIC_ARGS=""
+[ -r /etc/sysconfig/subsonic ] && . /etc/sysconfig/subsonic

Then add the following file:

/etc/sysconfig/subsonic

# command line options for subsonic
#
# For example, to specify that Subsonic should use port 7070
# and use a Java memory heap size of 80 MB, use the following:
#
# SUBSONIC_ARGS="--port=7070 --max-memory=80"
SUBSONIC_ARGS=""

This allows all configurations options to be made in the same location, and prevents people from incorrectly editing the subsonic startup script.

PostPosted: Tue Mar 16, 2010 8:32 am
by sindre_mehus
Yes, I agree, that is much better. Will fix that in the next release.

Thanks a lot!