Package list squeezelite / 392283d5-da34-422d-a9b5-d19d48b4b856/main alpine / squeezelite.initd
392283d5-da34-422d-a9b5-d19d48b4b856/main

Tree @392283d5-da34-422d-a9b5-d19d48b4b856/main (Download .tar.gz)

squeezelite.initd @392283d5-da34-422d-a9b5-d19d48b4b856/main

f4bd3ce
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
#!/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 $?
}