From: Rafał Miłecki Date: Mon, 26 Sep 2016 05:59:30 +0000 (+0200) Subject: pptpd: run service in foreground for procd compatibility X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=b24601c128f65444a51de1839bf13920f3e77108;p=openwrt-packages.git pptpd: run service in foreground for procd compatibility To have service working nicely with procd it should be running in the foreground. Otherwise it's not possible to e.g. stop it with the init.d script. Luckily for us pptpd has a simple switch that allows it. Signed-off-by: Rafał Miłecki Fixes: 15e7f611afb ("pptpd: convert init script to procd") --- diff --git a/net/pptpd/files/pptpd.init b/net/pptpd/files/pptpd.init index 0d18aa127..294b00f4d 100644 --- a/net/pptpd/files/pptpd.init +++ b/net/pptpd/files/pptpd.init @@ -67,6 +67,6 @@ start_service() { ln -sfn $CHAP_SECRETS /etc/ppp/chap-secrets procd_open_instance - procd_set_param command $BIN -c $CONFIG -o $OPTIONS_PPTP + procd_set_param command $BIN -c $CONFIG --fg -o $OPTIONS_PPTP procd_close_instance }