Solutions to the failure of starting pptpd in Linux system

Time:2021-10-13

After installing pptpd, the service cannot be started when it is started

   

Copy code

The code is as follows:

service pptpd start

If chkconfig pptpd on has been configured, it will stop running in starting pptpd: during startup.

   

Copy code

The code is as follows:

tail -f /var/log/message

 

Can see

   

Copy code

The code is as follows:

pptpd[6974]: Long config file line ignored.

 

At first, I thought the configuration file was too large, but it wasn’t. just end it with a blank line. See the source code of configFile. C for the specific reason

 

Copy code

The code is as follows:

/* ignore long lines */
if (buffer[(len = strlen(buffer)) – 1] != ‘\n’) {
syslog(LOG_ERR, “Long config file line ignored.”);
do
fgets(buffer, MAX_CONFIG_STRING_SIZE – 1, in);
while (buffer[strlen(buffer) – 1] != ‘\n’);
continue;
}

 

Conclusion: / etc / pptpd.conf should end with a blank line.