Commit 15b41aa8 authored by Julien Muchembled's avatar Julien Muchembled

init.d: fix restart & force-reload when re6stnet is not bound to loopback

parent a7ed3c1d
...@@ -32,9 +32,10 @@ override_dh_installinit: ...@@ -32,9 +32,10 @@ override_dh_installinit:
install -d $(INIT) install -d $(INIT)
sed 's/#NAME#/re6st-registry/; s/#DEPENDS#//; s,#DAEMON_DIR#,/usr/bin,' \ sed 's/#NAME#/re6st-registry/; s/#DEPENDS#//; s,#DAEMON_DIR#,/usr/bin,' \
<debian/init.d >$(INIT)/re6st-registry <debian/init.d >$(INIT)/re6st-registry
sed 's/#NAME#/re6stnet/; s/#DEPENDS#/re6st-registry/; s,#DAEMON_DIR#,/usr/sbin,; /start)$$/a \ sed 's/#NAME#/re6stnet/; s/#DEPENDS#/re6st-registry/; s,#DAEMON_DIR#,/usr/sbin,; /^case/i\
cd $$CONFDIR; $$DAEMON @$$NAME.conf --test "main_interface != '\'lo\''" || exit 0' \ cd $$CONFDIR; $$DAEMON @$$NAME.conf --test "main_interface != '\'lo\''" ||\
<debian/init.d >$(INIT)/re6stnet case "$$1" in start) exit 0;; restart|force-reload) set stop;; esac\
' <debian/init.d >$(INIT)/re6stnet
for x in re6st-registry re6stnet; \ for x in re6st-registry re6stnet; \
do chmod +x $(INIT)/$$x && dh_installinit --onlyscripts --name=$$x; \ do chmod +x $(INIT)/$$x && dh_installinit --onlyscripts --name=$$x; \
done done
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment