xref: /OK3568_Linux_fs/buildroot/package/freescale-imx/imx-uuc/S80imx-uuc (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1#!/bin/sh
2
3NAME=uuc
4DAEMON=/usr/bin/$NAME
5
6case "$1" in
7    start)
8	printf "Starting $NAME: "
9	start-stop-daemon -S -q -b -m -p /var/run/${NAME}.pid -x $DAEMON
10	[ $? = 0 ] && echo "OK" || echo "FAIL"
11	;;
12    stop)
13	printf "Stopping $NAME: "
14	start-stop-daemon -K -q -p /var/run/${NAME}.pid
15	[ $? = 0 ] && echo "OK" || echo "FAIL"
16	;;
17    restart|reload)
18	$0 stop
19	sleep 1
20	$0 start
21	;;
22    *)
23	echo "Usage: $0 {start|stop|restart}"
24	exit 1
25esac
26
27exit $?
28