Running daemon under non-root account
Create file /etc/udev/rules.d/99-iqrf.rules with:
SUBSYSTEM=="spidev", MODE="0666"
SUBSYSTEM=="gpio*", PROGRAM="/bin/sh -c 'chown -R root:dialout /sys/class/gpio; chmod -R 777 /sys/class/gpio; chown -R root:gpio /sys/devices/virtual/gpio; chmod -R 777 /sys/devices/virtual/gpio'"
Should also daemon package create user under which it will run?
Edited by Roman Ondráček