1*4882a593Smuzhiyun[Unit] 2*4882a593SmuzhiyunDescription=The open L2TP implementation 3*4882a593SmuzhiyunAfter=network.target remote-fs.target nss-lookup.target rpcbind.target 4*4882a593SmuzhiyunRequires=rpcbind.service 5*4882a593Smuzhiyun 6*4882a593Smuzhiyun[Service] 7*4882a593SmuzhiyunType=forking 8*4882a593SmuzhiyunPIDFile=/run/openl2tpd.pid 9*4882a593SmuzhiyunEnvironmentFile=@SYSCONFDIR@/default/openl2tpd 10*4882a593SmuzhiyunExecStartPre=@BASE_BINDIR@/sh -c "@BASE_SBINDIR@/modprobe -sq l2tp_ppp || @BASE_SBINDIR@/modprobe -sq pppol2tp" 11*4882a593SmuzhiyunExecStart=@SBINDIR@/openl2tpd $OPENL2TPDARGS 12*4882a593SmuzhiyunExecStartPost=@BASE_BINDIR@/sh -c 'if [ -n "$OPENL2TPD_CONFIG_FILE" ]; then sleep 1; @BINDIR@/l2tpconfig config restore file=$OPENL2TPD_CONFIG_FILE; fi' 13*4882a593SmuzhiyunExecStopPost=@BASE_BINDIR@/sh -c "@BASE_SBINDIR@/modprobe -rsq l2tp_ppp || @BASE_SBINDIR@/modprobe -rsq pppol2tp" 14*4882a593SmuzhiyunSuccessExitStatus=1 15*4882a593Smuzhiyun 16*4882a593Smuzhiyun[Install] 17*4882a593SmuzhiyunWantedBy=multi-user.target 18