mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-10 02:11:44 +01:00
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: #15145
14 lines
220 B
Bash
Executable File
14 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
|
|
}
|
|
|