ola: improve init script
authorDaniel Golle <redacted>
Fri, 22 Dec 2017 22:59:55 +0000 (23:59 +0100)
committerDaniel Golle <redacted>
Fri, 22 Dec 2017 23:00:33 +0000 (00:00 +0100)
Drop now unneeded dependency on sudo.

Signed-off-by: Daniel Golle <redacted>
net/ola/Makefile
net/ola/files/olad.init

index 2c9528c5dd8090e381b0c2fd65c886a982c93a17..eca389d6ba49ea4d27583a8fb32d9fb02259b639 100644 (file)
@@ -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
index f1dff362de81d33baf7b82105bd838a2e0547374..e99239e6bc0ac3b07a0245633de187fbb8813d2d 100644 (file)
@@ -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
 }
git clone https://git.99rst.org/PROJECT