mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
Merge pull request #5315 from dangowrt/ola-no-sudo
ola: improve init script
This commit is contained in:
+2
-2
@@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=ola
|
PKG_NAME:=ola
|
||||||
PKG_VERSION:=0.10.5
|
PKG_VERSION:=0.10.5
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_SOURCE_PROTO:=git
|
PKG_SOURCE_PROTO:=git
|
||||||
PKG_SOURCE_URL:=https://github.com/OpenLightingProject/ola.git
|
PKG_SOURCE_URL:=https://github.com/OpenLightingProject/ola.git
|
||||||
@@ -38,7 +38,7 @@ define Package/ola
|
|||||||
TITLE:=Open Lighting Architecture Daemon
|
TITLE:=Open Lighting Architecture Daemon
|
||||||
URL:=https://www.openlighting.org/
|
URL:=https://www.openlighting.org/
|
||||||
MAINTAINER:=Christian Beier <dontmind@freeshell.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
|
endef
|
||||||
|
|
||||||
define Package/ola/description
|
define Package/ola/description
|
||||||
|
|||||||
@@ -8,7 +8,8 @@ START=90
|
|||||||
|
|
||||||
start_service() {
|
start_service() {
|
||||||
procd_open_instance
|
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_set_param respawn
|
||||||
procd_close_instance
|
procd_close_instance
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user