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