aports/main/ppp/pppd.initd
Dominique Martinet 4a61d7196b main/ppp: revert lock dir to /var/lock
Backport upstream fix for pppd failing to start when lock dir
does not exist (by reverting the lock dir to somewhere that
should always exist)

This fixes using pppd from something else than the main pppd service
(e.g. networkmanager of ifupdown-ng), as these would not go through the
checkpath hook, and pppd can now run without /run/ppp

Link: https://github.com/ppp-project/ppp/pull/435
Fixes: 
2023-10-10 07:03:34 +00:00

13 lines
220 B
Bash
Executable file

#!/sbin/openrc-run
name="pppd"
command="/usr/sbin/${SVCNAME}"
command_args="nodetach ${PPPD_OPTS}"
pidfile="/run/$RC_SVCNAME.pid"
command_background=true
start_pre() {
checkpath --directory /run/ppp
modprobe pptp
}