Lines Matching +full:otbr +full:- +full:agent
29 # Provides: otbr-agent
30 # Required-Start:
31 # Required-Stop:
32 # Should-Start:
33 # Should-Stop:
34 # Default-Start: 2 3 4 5
35 # Default-Stop: 0 1 6
36 # Short-Description: thread border agent
37 # Description: otbr-agent provides services to access thread device attached to border router
40 set -e
43 DESC="thread border agent"
44 NAME=otbr-agent
45 DAEMON=@CMAKE_INSTALL_FULL_SBINDIR@/otbr-agent
46 PIDFILE=/var/run/otbr-agent.pid
48 AGENT_CONF=@CMAKE_INSTALL_FULL_SYSCONFDIR@/default/otbr-agent
50 . /lib/lsb/init-functions
53 if [ -f $AGENT_CONF ]; then
59 if [ -e $PIDFILE ]; then
65 rm -f $PIDFILE
70 start-stop-daemon --start --quiet \
71 --pidfile $PIDFILE --make-pidfile \
72 -b --exec $DAEMON -- $OTBR_AGENT_OPTS
79 start-stop-daemon --stop --retry 5 --quiet --oknodo \
80 --pidfile $PIDFILE --remove-pidfile
88 restart|reload|force-reload)
92 stop|force-stop)
96 status_of_proc -p $PIDFILE $DAEMON $NAME && exit 0 || exit $?
99 log_action_msg "Usage: /etc/init.d/$NAME {start|stop|status|restart|reload|force-reload}"