Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"accel-cmd reload" can't work properly when accel-pppd works in deamon mode #74

Closed
nktaozhenyu opened this issue May 27, 2019 · 4 comments

Comments

@nktaozhenyu
Copy link

Hi,
I'm trying to set up a L2TP Server on the Centos7.3 by using accel-pppd.
I'm having issues with "accel-cmd reload" command. It can work well in
normal mode without "-d" parameter specified,but alway failed when
"-d" parameter specified.But other accel-cmd command(such as show stat)
don't act like this.

  Details are as follows:
  1)OS: CentOS Linux release 7.3.1611 (Core) 
     GCC:8.2.0
     accel-pppd: lastest version(https://codeload.github.com/xebd/accel-ppp/zip/master)、
                             1.11.2(https://jaist.dl.sourceforge.net/project/accel-ppp/accel-ppp-1.11.2.tar.bz2) 
     compile parameter:cmake -DBUILD_DRIVER=FALSE -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS="-g -O0 -ggdb3" -DLOG_PGSQL=FALSE -DSHAPER=TRUE -DRADIUS=TRUE -DNETSNMP=FALSE ..

  2) reload failed but show stat worked well. 

[root@centos-test bin]# ./accel-cmd reload
failed
[root@centos-test bin]# ./accel-cmd show sessions
ifname | username | calling-sid | ip | type | comp | state | uptime
--------+----------+-------------+----+------+------+-------+--------

  3)I can't find any userful information in Log files ,but I put them here.

[2019-05-27 15:07:01]: info: cli: tcp: new connection from 127.0.0.1
[2019-05-27 15:07:01]: debug: cli: disconnect
[2019-05-27 15:07:07]: info: cli: tcp: new connection from 127.0.0.1
[2019-05-27 15:07:07]: debug: cli: disconnect

Would you please help me ?Waiting for your reply, thans.

@DmitriyEshenko
Copy link
Contributor

DmitriyEshenko commented May 28, 2019

Hi, can you show running process? ps ax | grep accel-pppd
try add -p <pid> if run without pid, like accel-pppd -c /etc/accel-ppp.conf -d -p /var/run/accel-ppp.pid

@nktaozhenyu
Copy link
Author

nktaozhenyu commented May 28, 2019 via email

@DmitriyEshenko
Copy link
Contributor

DmitriyEshenko commented May 28, 2019

/var/run/ does not exist?
try set absolute path and change directory for pid like
./accel-pppd -d -c /etc/accel-ppp.conf.dist -p /var/run/accel-ppp.pid
and show me please accel-cmd -V

@nktaozhenyu
Copy link
Author

nktaozhenyu commented May 28, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants