summaryrefslogtreecommitdiff
path: root/net/ola
diff options
context:
space:
mode:
authorDaniel Golle <daniel@makrotopia.org>2017-12-22 23:59:55 +0100
committerDaniel Golle <daniel@makrotopia.org>2017-12-23 00:00:33 +0100
commit499536b1ac3fcb89b5d378309b27dcf114c681ef (patch)
tree5813265f7966c0004902860763d57161f38a35d4 /net/ola
parentb49773a4f9bf4ec4c93882b8f164d58ccffdadb7 (diff)
ola: improve init script
Drop now unneeded dependency on sudo. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Diffstat (limited to 'net/ola')
-rw-r--r--net/ola/Makefile4
-rw-r--r--net/ola/files/olad.init3
2 files changed, 4 insertions, 3 deletions
diff --git a/net/ola/Makefile b/net/ola/Makefile
index 2c9528c5d..eca389d6b 100644
--- a/net/ola/Makefile
+++ b/net/ola/Makefile
@@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=ola
PKG_VERSION:=0.10.5
-PKG_RELEASE:=1
+PKG_RELEASE:=2
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/OpenLightingProject/ola.git
@@ -38,7 +38,7 @@ define Package/ola
TITLE:=Open Lighting Architecture Daemon
URL:=https://www.openlighting.org/
MAINTAINER:=Christian Beier <dontmind@freeshell.org>
- DEPENDS:=+protobuf +libusb-1.0 +libuuid +libstdcpp +libpthread +librt +zlib +libncurses +liblo +sudo
+ DEPENDS:=+protobuf +libusb-1.0 +libuuid +libstdcpp +libpthread +librt +zlib +libncurses +liblo
endef
define Package/ola/description
diff --git a/net/ola/files/olad.init b/net/ola/files/olad.init
index f1dff362d..e99239e6b 100644
--- a/net/ola/files/olad.init
+++ b/net/ola/files/olad.init
@@ -8,7 +8,8 @@ START=90
start_service() {
procd_open_instance
- procd_set_param command sudo -u nobody /usr/bin/olad --syslog --log-level 2 --config-dir /etc/ola
+ procd_set_param user nobody
+ procd_set_param command /usr/bin/olad --syslog --log-level 2 --config-dir /etc/ola
procd_set_param respawn
procd_close_instance
}