Codebase list squeezelite / f2b598c9-f297-428c-910b-12e44c2c753c/main alpine / squeezelite.initd
f2b598c9-f297-428c-910b-12e44c2c753c/main

Tree @f2b598c9-f297-428c-910b-12e44c2c753c/main (Download .tar.gz)

squeezelite.initd @f2b598c9-f297-428c-910b-12e44c2c753c/mainraw · history · blame

#!/sbin/openrc-run
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

depend() {
    need net
    use alsasound
    after bootmisc
}

start() {
    ebegin "Starting squeezelite"
    start-stop-daemon \
    --start \
    --exec /usr/bin/squeezelite \
    --pidfile /run/squeezelite.pid \
    --make-pidfile \
    --user ${SL_USER} \
    --background \
    -- ${SL_OPTS} ${SL_SERVERIP}
    eend $?
}

stop() {
    ebegin "Stopping squeezelite"
    start-stop-daemon \
    --stop \
    --exec /usr/bin/squeezelite \
    --pidfile /run/squeezelite.pid
    eend $?
}