Closed nktaozhenyu closed 5 years ago
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@aliyun.com
From: Eshenko Dmitriy
Date: 2019-05-28 13:52
To: xebd/accel-ppp
CC: nktaozhenyu; Author
Subject: Re: [xebd/accel-ppp] "accel-cmd reload" can't work properly when accel-pppd works in deamon mode (#74)
Hi, can you show running process? ps ax | grep accel-pppd
try add -p
/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
Thank you for your reminder. I think I've found the cause of the issue. While "-d" parameter specified, statement("daemon(0, 0);") is executed. The current working directory is changed to the root ("/") , standard output and standard error are redirected to /dev/null. So when I specify the relative config path rather than absolute path, the application can't find the config file and can't ouput error message.
Thany you very much.
nktaozhenyu@aliyun.com
From: Eshenko Dmitriy Date: 2019-05-28 15:21 To: xebd/accel-ppp CC: nktaozhenyu; Author Subject: Re: [xebd/accel-ppp] "accel-cmd reload" can't work properly when accel-pppd works in deamon mode (#74) /var/run/ does not exist? try set absolute path and change directory for pid like ./accel-pppd -c /etc/accel-ppp.conf.dist -d -p /var/run/accel-ppp.pid — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.
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.
[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 --------+----------+-------------+----+------+------+-------+--------
[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.