blob: 7b3faf6725efa6b4d13d1dad0b9afea04052defd [file] [log] [blame]
Brad Bishopd7bf8c12018-02-25 22:55:05 -05001[Unit]
2Description=The open L2TP implementation
3After=network.target remote-fs.target nss-lookup.target rpcbind.target
4Requires=rpcbind.service
5
6[Service]
7Type=forking
8PIDFile=@STATEDIR@/run/openl2tpd.pid
9EnvironmentFile=@SYSCONFDIR@/default/openl2tpd
10ExecStartPre=@BASE_BINDIR@/sh -c "@BASE_SBINDIR@/modprobe -sq l2tp_ppp || @BASE_SBINDIR@/modprobe -sq pppol2tp"
11ExecStart=@SBINDIR@/openl2tpd $OPENL2TPDARGS
12ExecStartPost=@BASE_BINDIR@/sh -c 'if [ -n "$OPENL2TPD_CONFIG_FILE" ]; then sleep 1; @BINDIR@/l2tpconfig config restore file=$OPENL2TPD_CONFIG_FILE; fi'
13ExecStopPost=@BASE_BINDIR@/sh -c "@BASE_SBINDIR@/modprobe -rsq l2tp_ppp || @BASE_SBINDIR@/modprobe -rsq pppol2tp"
14SuccessExitStatus=1
15
16[Install]
17WantedBy=multi-user.target