Browse Source

gnunet: improve procd init-script

Directly call /usr/lib/gnunet/libexec/gnunet-service-arm instead
of /usr/bin/gnunet-arm, so it remains attached to procd.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
lilik-openwrt-22.03
Daniel Golle 10 years ago
parent
commit
a85f38afea
2 changed files with 3 additions and 10 deletions
  1. +1
    -1
      net/gnunet/Makefile
  2. +2
    -9
      net/gnunet/files/gnunet.init

+ 1
- 1
net/gnunet/Makefile View File

@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=gnunet
PKG_SOURCE_VERSION:=35845
PKG_VERSION:=0.10.1-svn$(PKG_SOURCE_VERSION)
PKG_RELEASE:=1
PKG_RELEASE:=2
# ToDo:
# - split into small packages


+ 2
- 9
net/gnunet/files/gnunet.init View File

@ -5,7 +5,7 @@ START=50
STOP=10
USE_PROCD=1
PROG=/usr/bin/gnunet-arm
PROG=/usr/lib/gnunet/libexec/gnunet-service-arm
CONFIGFILE=/var/run/gnunet/gnunet.conf
start_service() {
@ -19,14 +19,7 @@ start_service() {
fi
procd_open_instance
procd_set_param user gnunet
procd_set_param command $PROG -c $CONFIGFILE -s -m
procd_set_param command $PROG -c $CONFIGFILE
procd_set_param respawn
procd_close_instance
}
stop_service() {
procd_open_instance
procd_set_param user gnunet
procd_set_param command $PROG -c $CONFIGFILE -e
procd_close_instance
}

Loading…
Cancel
Save