How to update accel-ppp

I will give an example of updating the accel-ppp, the commands need to be executed as root user.

First, see the current version of accel-ppp:

accel-cmd -V

Make a copy of the dictionary, if you previously made your own changes to it:

cp /usr/local/share/accel-ppp/radius/dictionary /usr/local/share/accel-ppp/radius/dictionary_copy


The file /etc/accel-ppp.conf after accel-ppp is usually left untouched, but just in case we make a backup copy:

cp /etc/accel-ppp.conf /etc/accel-ppp_`date +%Y-%m-%d`_backup.conf

Rename the old source directory accel-ppp (it may still come in handy):

mv /opt/accel-ppp-code /opt/accel-ppp-code_old

Download the new source code accel-ppp:

cd /opt/
git clone git://git.code.sf.net/p/accel-ppp/code accel-ppp-code

If we stop accel-ppp and use a watchdog, we comment it out or turn it off so that it does not start.

Stop accel-ppp:

service accel-ppp stop

Unload modules:

modprobe -r ipoe
modprobe -r vlan_mon

Make sure that there are no ipoe interfaces left (when accel-ppp is turned off, even with kill, they should not be):

ip a | grep ipoe
ifconfig | grep ipoe

You can also perform the update while accel-ppp is running, and then restart everything.

Continue the installation as I described in this article – Accel-ppp installation

You can look at the date of some files to make sure that accel-ppp is installed:

ls -lah /usr/local/share/accel-ppp/radius/dictionary
ls -lah /usr/share/accel-ppp/radius/dictionary

After successful installation of the new version of accel-ppp, we will load the modules and return the dictionary:

mv /usr/local/share/accel-ppp/radius/dictionary_copy /usr/local/share/accel-ppp/radius/dictionary

Run accel-ppp:

service accel-ppp start

Check the current version:

accel-cmd -V

Is done.

Подписаться на IT Blog (RU) по Email
Subscribe to IT Blog (EN) by Email

Did my article help you? How about buying me a cup of coffee as an encouragement? Buy me a coffe.

Leave a Reply