summaryrefslogtreecommitdiff
blob: 0112c5d89a226b8a1954f814e65a0ccbe02c56db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/sbin/runscript
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

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 $?
}