Subsonic init script change for RedHat - Fedora rpms

Got an idea? Missing something? Post your feature request here.

Moderator: moderators

Subsonic init script change for RedHat - Fedora rpms

Postby vachaun22 » Mon Mar 15, 2010 12:48 pm

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.
vachaun22
 
Posts: 2
Joined: Mon Mar 15, 2010 12:40 pm

Postby sindre_mehus » Tue Mar 16, 2010 8:32 am

Yes, I agree, that is much better. Will fix that in the next release.

Thanks a lot!
Subsonic developer
User avatar
sindre_mehus
 
Posts: 1955
Joined: Tue Nov 29, 2005 6:19 pm
Location: Oslo, Norway


Return to Feature Requests

Who is online

Users browsing this forum: No registered users and 7 guests