当前位置: 首页 > 工具软件 > xl2tpd > 使用案例 >

xl2tpd.service: main process exited, code=exited, status=1/FAILURE

崔棋
2023-12-01

启动xl2tp服务错误, xl2tpd.service: main process exited, code=exited, status=1/FAILURE


● xl2tpd.service - Level 2 Tunnel Protocol Daemon (L2TP)
   Loaded: loaded (/usr/lib/systemd/system/xl2tpd.service; disabled; vendor preset: disabled)
   Active: failed (Result: start-limit) since Tue 2018-01-02 11:02:27 CST; 1min 30s ago
  Process: 30451 ExecStart=/usr/sbin/xl2tpd -D (code=exited, status=1/FAILURE)
  Process: 30448 ExecStartPre=/sbin/modprobe -q l2tp_ppp (code=exited, status=0/SUCCESS)
 Main PID: 30451 (code=exited, status=1/FAILURE)


Jan 02 11:02:27 localhost.localdomain systemd[1]: xl2tpd.service: main process exited, code=exited, status=1/FAILURE
Jan 02 11:02:27 localhost.localdomain systemd[1]: Unit xl2tpd.service entered failed state.
Jan 02 11:02:27 localhost.localdomain systemd[1]: xl2tpd.service failed.
Jan 02 11:02:27 localhost.localdomain systemd[1]: xl2tpd.service holdoff time over, scheduling restart.
Jan 02 11:02:27 localhost.localdomain systemd[1]: start request repeated too quickly for xl2tpd.service
Jan 02 11:02:27 localhost.localdomain systemd[1]: Failed to start Level 2 Tunnel Protocol Daemon (L2TP).
Jan 02 11:02:27 localhost.localdomain systemd[1]: Unit xl2tpd.service entered failed state.
Jan 02 11:02:27 localhost.localdomain systemd[1]: xl2tpd.service failed.


查看 /var/log/messages 发现启动时提示配置文件第三行错误


 Jan  2 11:04:02 localhost xl2tpd: xl2tpd[30529]: parse_config: line 3: line too long or no '=' in data
Jan  2 11:04:02 localhost xl2tpd: xl2tpd[30529]: init: Unable to load config file


加载配置文件错误导致不能启动


删除 xl2tpd 配置文件第三行即可

 类似资料: