#!/bin/sh # # /etc/init.d/obd: start or stop the OBEX Push helper daemon # PARAMS="--mode OBEX --channel 10 --path /tmp/opd --sdp --metadata" case "$1" in start) echo -n "Starting OBEX Push helper: opd" opd $PARAMS & ;; stop) echo -n "Shutting down OBEX Push helper: opd" killall opd ;; restart|force-reload) echo -n "Restarting OBEX Push helper: opd" killall opd sleep 2 obd $PARAMS & ;; *) echo "Usage: /etc/init.d/obd {start|stop|restart|force-reload}" exit 1 ;; esac exit 0