8cc3267384
Libiio is a library to ease the development of software interfacing Linux Industrial I/O (IIO) devices. http://wiki.analog.com/resources/tools-software/linux-software/libiio [Thomas: - Remove changelog from the commit log. - Rename init script to S99iiod instead of S99iiod.sh - Remove "status" command from init script, and implement "restart" instead. - Add dependency on thread support in toolchain. - Fixup indentation in the .mk file. - Fixup wrapping in the Config.in help text.] Signed-off-by: Paul Cercueil <paul.cercueil@analog.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
31 lines
489 B
Bash
31 lines
489 B
Bash
#!/bin/sh
|
|
|
|
# Server-side demuxing by default
|
|
IIOD_OPTS=-D
|
|
|
|
[ -r /etc/default/iiod ] && . /etc/default/iiod
|
|
|
|
case "$1" in
|
|
start)
|
|
echo "Starting IIO Server Daemon"
|
|
start-stop-daemon -S -b -q -m -p /var/run/iiod.pid -x /usr/sbin/iiod -- $IIOD_OPTS
|
|
exit $?
|
|
;;
|
|
|
|
stop)
|
|
echo "Stopping IIO Server Daemon"
|
|
start-stop-daemon -K -q -p /var/run/iiod.pid 2>/dev/null
|
|
exit $?
|
|
;;
|
|
|
|
restart)
|
|
$0 stop
|
|
sleep 1
|
|
$0 start
|
|
;;
|
|
|
|
*)
|
|
echo "Usage: $0 {start|stop|restart}"
|
|
exit 1
|
|
esac
|