Difference between revisions of "Linksys AC Series Router Configuration Tips for OpenWRT"

m
m
Line 2,902: Line 2,902:


=====PID File (if needed)=====
=====PID File (if needed)=====
If there's a situation where a PID file is needed to keep track of OpenVPN functionality, thankfully OpenWRT has not included that in their init.d configuration.  But it can be added.  Below is what needs to be added to the /etc/init.d/openvpn file;<syntaxhighlight lang="text">
If there's a situation where a PID file is needed to keep track of OpenVPN functionality, thankfully OpenWRT has not included that in their init.d configuration.  But it can be added.  Below is what needs to be added to the /etc/init.d/openvpn file.  It can also be added to the configuration file for an instance of OpenVPN Server or Client.<syntaxhighlight lang="text">
...in the "openvpn_add_instance" section, add the line in between --->  <----.  The rest of the surrounding code for that single line is already there and is just put here for reference.  An obviously don't include the ---> or <--- "arrows";
...in the "openvpn_add_instance" section, add the line in between --->  <----.  The rest of the surrounding code for that single line is already there and is just put here for reference.  An obviously don't include the ---> or <--- "arrows";


Line 2,932: Line 2,932:
stop_service()
stop_service()
{
{
rm /var/run/openvpn.*
rm /var/run/openvpn*
}
}
</syntaxhighlight>
</syntaxhighlight>