3 DAEMON=/usr/sbin/connmand
4 PIDFILE=/var/run/connmand.pid
5 DESC="Connection Manager"
8 . /lib/lsb/init-functions
10 if [ -f /etc/default/connman ] ; then
11 . /etc/default/connman
18 test -x /sbin/initctl && USE_UPSTART=1
21 if [ -z "$USE_UPSTART" ]; then
22 start-stop-daemon --start --oknodo \
23 --pidfile $PIDFILE --exec $DAEMON -- $DAEMON_OPTS
30 if [ -z "$USE_UPSTART" ]; then
31 start-stop-daemon --stop --oknodo --quiet \
32 --pidfile $PIDFILE --exec $DAEMON
40 log_daemon_msg "Starting $DESC"
45 log_daemon_msg "Stopping $DESC"
50 log_daemon_msg "Restarting $DESC"
57 log_success_msg "Usage: $0 {start|stop|restart|force-reload}" >&2