python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / libiio / S99iiod
blobdf2f76346147fb0e65fe8afd022bd18e639ec301
1 #!/bin/sh
3 # Server-side demuxing by default
4 IIOD_OPTS=-D
6 [ -r /etc/default/iiod ] && . /etc/default/iiod
8 case "$1" in
9 start)
10 echo "Starting IIO Server Daemon"
11 start-stop-daemon -S -b -q -m -p /var/run/iiod.pid -x /usr/sbin/iiod -- $IIOD_OPTS
12 exit $?
15 stop)
16 echo "Stopping IIO Server Daemon"
17 start-stop-daemon -K -q -p /var/run/iiod.pid 2>/dev/null
18 exit $?
21 restart)
22 $0 stop
23 sleep 1
24 $0 start
28 echo "Usage: $0 {start|stop|restart}"
29 exit 1
30 esac