rfcommd.gentoo - rfcommd - RFCOMM daemon to run filters on clients.
(HTM) git clone git://bitreich.org/rfcommd/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/rfcommd/
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Tags
(DIR) README
(DIR) LICENSE
---
rfcommd.gentoo (737B)
---
1 #!/sbin/openrc-run
2 # Copyright 1999-2016 Gentoo Foundation
3 # Distributed under the terms of the GNU General Public License v2
4 # $Id$
5
6 depend() {
7 need bluetooth
8 }
9
10 start() {
11 ebegin "Starting rfcommd"
12 #[ -n "$RFCOMMD_ARGS" ] && RFCOMMD_ARGS="-- $RFCOMMD_ARGS"
13 start-stop-daemon -Sbimp /var/run/rfcommd.pid \
14 -1 /var/log/rfcommd-stdout.log \
15 -2 /var/log/rfcommd-stderr.log \
16 -x /usr/sbin/rfcommd -- "${RFCOMMD_ARGS[@]}"
17 #start-stop-daemon -Sbimp /var/run/rfcommd.pid \
18 # -1 /tmp/rfcommd-stdout.log \
19 # -2 /tmp/rfcommd-stderr.log \
20 # -x /usr/sbin/rfcommd ${RFCOMMD_ARGS}
21 eend $? "Failed to start rfcommd"
22 }
23
24 stop() {
25 ebegin "Stopping rfcommd"
26 start-stop-daemon -Kip /var/run/rfcommd.pid
27 eend $? "Failed to stop rfcommd"
28 }
29