perfinion    15/04/11 19:51:08

  Added:                subsonic.initd subsonic.confd
  Log:
  Initial Commit, modified from hnaparst overlay
  
  (Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 
0x7EF137EC935B0EAF)

Revision  Changes    Path
1.1                  media-sound/subsonic-bin/files/subsonic.initd

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/subsonic-bin/files/subsonic.initd?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/subsonic-bin/files/subsonic.initd?rev=1.1&content-type=text/plain

Index: subsonic.initd
===================================================================
#!/sbin/openrc-run
# Distributed under the terms of the GNU General Public License, v2 or later

SUBSONIC_HOME=${SUBSONIC_HOME:-/var/lib/${SVCNAME}}
SUBSONIC_USER=${SUBSONIC_USER:-${SVCNAME}}
PIDFILE=${PIDFILE:-${SUBSONIC_HOME}/subsonic.pid}

depend() {
        after net
}

start() {
        ebegin "Starting ${SVCNAME}"
        start-stop-daemon \
                --start --user "${SUBSONIC_USER}" --name subsonic \
                --env HOME="${SUBSONIC_HOME}" --exec /usr/bin/subsonic \
                --nicelevel "${NICELEVEL}" \
                -- --pidfile="${PIDFILE}" \
                --home="${SUBSONIC_HOME}" \
                --host="${SUBSONIC_HOST}" \
                --port="${SUBSONIC_PORT}" \
                --https-port="${SUBSONIC_HTTPS_PORT}" \
                --context-path="${SUBSONIC_CONTEXT_PATH}" \
                --max-memory="${SUBSONIC_MAX_MEMORY}" \
                --default-music-folder="${SUBSONIC_DEFAULT_MUSIC_FOLDER}" \
                --default-podcast-folder="${SUBSONIC_DEFAULT_PODCAST_FOLDER}" \
                --default-playlist-folder="${SUBSONIC_DEFAULT_PLAYLIST_FOLDER}" 
\
                ${SUBSONIC_OPTS}
        eend $?
}

stop() {
        ebegin "Stopping ${SVCNAME}"
        start-stop-daemon --stop --user "${SUBSONIC_USER}" \
                --pidfile "${PIDFILE}" \
                --wait 30000 \
                --progress
        eend $?
}



1.1                  media-sound/subsonic-bin/files/subsonic.confd

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/subsonic-bin/files/subsonic.confd?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/subsonic-bin/files/subsonic.confd?rev=1.1&content-type=text/plain

Index: subsonic.confd
===================================================================

# Host and port to listen on
SUBSONIC_HOST=0.0.0.0
SUBSONIC_PORT=4040

# To disable https, set to 0
SUBSONIC_HTTPS_PORT=0

SUBSONIC_CONTEXT_PATH=/
SUBSONIC_MAX_MEMORY=100

# Music directories
SUBSONIC_DEFAULT_MUSIC_FOLDER=/var/music
SUBSONIC_DEFAULT_PODCAST_FOLDER=/var/music/Podcast
SUBSONIC_DEFAULT_PLAYLIST_FOLDER=/var/playlists

NICELEVEL=0

# Further subsonic start script options, if ever needed
SUBSONIC_OPTS=""




Reply via email to