The previous commit left an unwanted string in the options passed to xl2tpd-control. Remove that as well. Also set procd respawn parameter now that I'm at it. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
24 lines
377 B
Bash
24 lines
377 B
Bash
#!/bin/sh /etc/rc.common
|
|
# Copyright (C) 2006-2015 OpenWrt.org
|
|
|
|
START=60
|
|
USE_PROCD=1
|
|
|
|
BIN=xl2tpd
|
|
RUN_D="/var/run/xl2tpd"
|
|
PID_F="/var/run/xl2tpd.pid"
|
|
|
|
start_service() {
|
|
rm -rf "$RUN_D"
|
|
mkdir -p "$RUN_D"
|
|
|
|
procd_open_instance
|
|
procd_set_param command $BIN -D -l -p "$PID_F"
|
|
procd_set_param respawn
|
|
procd_close_instance
|
|
}
|
|
|
|
stop_service() {
|
|
rm -rf "$RUN_D"
|
|
rm -rf "$PID_F"
|
|
}
|