projects
/
m6w6
/
btr
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
history
|
raw
|
HEAD
btrc & btrd
[m6w6/btr]
/
bin
/
btrc
1
#!/bin/bash
2
3
export
BTR_BINDIR
=
$
(
realpath $
(
dirname
$0
)/)
4
export
BTR_LIBDIR
=
$
(
realpath $
(
dirname
$0
)/
..
/
shar
e
/
btr
)
5
BTR_BANNER
=
"Control \`btrd\` daemons."
6
7
.
$BTR_LIBDIR
/
common.sh
8
.
$BTR_LIBDIR
/
btrc.sh
9
10
btrc-parseopts
"$@"
11
btrc-setup
12
13
case
"
$BTR_ACTION
"
in
14
status
)
15
ncat
--recv-only -U
"
$BTR_COMFILE
"
16
;;
17
cancel
)
18
btrc-signal INT
19
;;
20
run
)
21
btrc-signal HUP
22
;;
23
term
)
24
btrc-signal TERM
25
;;
26
esac
27
28
# vim: noet