Skip to content

Instantly share code, notes, and snippets.

@LuisPalacios
Created April 30, 2023 15:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LuisPalacios/e216877fe5595d7b2bdcbc70257e7166 to your computer and use it in GitHub Desktop.
Save LuisPalacios/e216877fe5595d7b2bdcbc70257e7166 to your computer and use it in GitHub Desktop.
Unit systemd para gestión de sesión PPP que no espera a que se establezca
#
# Unit systemd para gestión de PPP
# /etc/systemd/system/ppp_nowait@.service
# by LuisPa 2015
#
# Documento un caso de uso en este apunte:
# https://www.luispa.com/administración/2023/04/08/networking-avanzado.html
#
# Activar este servicio creando la configuración, p.ej:
# en /etc/ppp/peers/movistar
#
# systemctl enable ppp_nowait@movistar
#
# Esta es la versión "nodetach" que siginifica que se
# arranca el daemon PPP y se sale del programa, sin
# esperar a establecer el enlace.
#
# Hay que elegir entre usar ppp_wait o ppp_nowait, no
# tiene sentido habilitar ambos.
#
[Unit]
Description=PPP link to %I no wait
After=network.target systemd-udevd.service
[Service]
Type=oneshot
PIDFile=/run/ppp-%i.pid
ExecStart=/usr/sbin/pppd call %I linkname %i nodetach
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment