diff options
author | Stijn Tintel <stijn@linux-ipv6.be> | 2017-10-20 19:10:12 +0300 |
---|---|---|
committer | Stijn Tintel <stijn@linux-ipv6.be> | 2017-10-20 19:14:25 +0300 |
commit | ebf589600967cd26f278e801199abb3fd2b20cb6 (patch) | |
tree | b716fd67957b3554061d7e706470654ad73ca9c7 /libs/libiio/files/iiod.init | |
parent | 9f6eee3960125e75b9d09e4ea80dbf7a9de2b455 (diff) |
libiio: add iiod init script
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
Diffstat (limited to 'libs/libiio/files/iiod.init')
-rw-r--r-- | libs/libiio/files/iiod.init | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libs/libiio/files/iiod.init b/libs/libiio/files/iiod.init new file mode 100644 index 000000000..1ac62f3c8 --- /dev/null +++ b/libs/libiio/files/iiod.init @@ -0,0 +1,12 @@ +#!/bin/sh /etc/rc.common + +START=90 +USE_PROCD=1 +PROG=/usr/sbin/iiod + +start_service() { + procd_open_instance + procd_set_param command $PROG + procd_set_param respawn + procd_close_instance +} |