summaryrefslogtreecommitdiff
path: root/net-wireless/rtl-sdr/files/rtl_tcp.initd
blob: 2e4d07b8c28ac29fbc56bcd2ba43a9c6731cfa4f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/sbin/openrc-run
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

start() {
	ebegin "Starting rtl_tcp"
	start-stop-daemon --start --quiet --pidfile /run/rtl_tcp.pid \
		--background --make-pidfile --exec /usr/bin/rtl_tcp \
    -1 /var/log/rtl_tcp.log -2 /var/log/rtl_tcp.log \
		-- ${RTL_TCP_OPTIONS}
	eend ${?}
}

stop() {
	ebegin "Stopping rtl_tcp"
	start-stop-daemon --stop --quiet --pidfile /run/rtl_tcp.pid
	eend ${?}
}