Browse Source

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 <rafal@milecki.pl>
Fixes: 15e7f611af ("pptpd: convert init script to procd")
lilik-openwrt-22.03
Rafał Miłecki 8 years ago
parent
commit
b24601c128
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      net/pptpd/files/pptpd.init

+ 1
- 1
net/pptpd/files/pptpd.init View File

@ -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
}

Loading…
Cancel
Save