Where to put “-p” for solving “pptpd is not running”?

来源:互联网 发布:深圳淘宝培训班免费 编辑:程序博客网 时间:2024/05/17 15:58



down votefavorite

I'm working with pptpd on 14.04 and got a problem that when run /etc/init.d/pptpd start and /etc/init.d/pptpd status, it states that /use/sbin/pptpd is not running.

I'm searching for a reason and foundhttps://bugs.launchpad.net/ubuntu/+source/pptpd/+bug/1296835

However, I can't understand about -p, where to put it in?

Thank you for your helping, I'm stuck in this part for a week :)


You need to edit /etc/init.d/pptpd, and look for a line like:

status_of_proc "$PIDFILE" "$DAEMON" ...

And add -p before $PIDFILE:

status_of_proc -p "$PIDFILE" "$DAEMON" ...

转自: http://askubuntu.com/questions/612462/where-to-put-p-for-solving-pptpd-is-not-running

0 0