1 #!/sbin/runscript
 2
 3 #depend() {
 4 #   need net
 5 #   use mta
 6 #}
 7
 8 checkconfig() {
 9         if [ ! -f /etc/btnx/btnx_config_Default ]; then
10                 eerror "Configuration file /etc/btnx/btnx_config_Default not found"
11                 return 1
12         fi
13 }
14
15 start() {
16         checkconfig || return 1
17
18         ebegin "Starting btnx"
19 #        start-stop-daemon -start -exec /usr/sbin/btnx -- b
20     /usr/sbin/btnx -b
21         eend ${?}
22 }
23
24 stop() {
25         ebegin "Stopping btnx"
26 #        start-stop-daemon --stop --pidfile /var/run/btnx.pid
27     kill -3 $(cat /var/run/btnx.pid)
28         eend ${?}
29 }