sysrepo: salience 4447/head
authorAntonio Paunovic <antonio.paunovic@sartura.hr>
Tue, 6 Jun 2017 14:52:05 +0000 (14:52 +0000)
committerAntonio Paunovic <antonio.paunovic@sartura.hr>
Thu, 8 Jun 2017 08:46:43 +0000 (08:46 +0000)
Script priority adjusted.
Custom memory management turned off to save some memory on low-end device.

Signed-off-by: Antonio Paunovic <antonio.paunovic@sartura.hr>
net/sysrepo/Makefile
net/sysrepo/files/sysrepo.init

index ac4030df3d1e37c0a15be87e410b6bd9aa9cecb0..575fd7a59767a404abc9aed43232e4f86c7584b2 100644 (file)
@@ -81,7 +81,8 @@ CMAKE_OPTIONS += \
        -DCOMMIT_VERIFY_TIMEOUT=20 \
        -DOPER_DATA_PROVIDE_TIMEOUT=4 \
        -DNOTIF_AGE_TIMEOUT=120 \
-       -DNOTIF_TIME_WINDOW=20
+       -DNOTIF_TIME_WINDOW=20 \
+       -DUSE_SR_MEM_MGMT=0
 
 define Package/libsysrepo/install
        $(INSTALL_DIR) $(1)/usr/lib
index 9c9262c37b239cea339a1b9a3dcc2084972f5086..9a4320133e0c2cdaee642fba5a5cc25061e9f4db 100644 (file)
@@ -1,6 +1,6 @@
 #!/bin/sh /etc/rc.common
 
-START=70
+START=60
 STOP=10
 
 USE_PROCD=1
@@ -23,12 +23,6 @@ start_service() {
 
 stop_service()
 {
-    if [ -f /etc/init.d/netopeer2-server ]; then
-        # netopeer2-server will automatically start sysrepod,
-        # so we need to stop it
-        /etc/init.d/netopeer2-server stop
-        sleep 1
-    fi
     service_stop ${PROG_PLUGIN}
     service_stop ${PROG_DEAMON}
 }