According to suggestions of Marc Haber and others in the german ISDN4Linux-newsgroup [1] the design for starting and stopping scripts is done in a SYSV-initscript-style mixed with the run-parts concept of Debian depending on the device as well:
The options do reside in /etc/ppp/${DEVICE}.d, so every ipppd has it's own file.
Scripts reside in /etc/ppp/scripts. Every script has an up and a down part.
In /etc/ppp/${DEVICE}.d/up|down there are only enumerated symlinks to these scripts.
So you may easily decide and configure which services to start and stop by just adding or deleting a symlink.
On dialup RedHat automatically invokes /etc/ppp/ip-up.local. This one will get some general information out of /etc/ppp/scripts/common. Then all scripts resp. the links to scripts in /etc/ppp/${DEVICE}.d/up/ will be executed.
On hangup /etc/ppp/ip-down.local [2] will be executed.
On dialup this one will change /etc/resolv.conf automatically for you, if you set GET_DNS to "yes" in /etc/sysconfig/network-scripts/ifcfg-ippp0.
On dialup this one will save a timestamp to /var/lock/${DEVICE}.online. On hangup it will see if the uptime is less than 10 seconds [3] and bring the device down. A message is then sent to root.
On dialup this one will change the route entries to be in accordance with your dynamic IP-addresses [4] . On hangup, it will reconfigure the isdn-device via ifconfig and reset the route-entries.
Look into private for automatic triggering of EMail-download and send. As I use qmail, a replacement for sendmail, which is faster, more secure and easier to configure (wink), most users might want to take a look into the samples-directory of the documentation, where you will find a private.sendmail.
Note: For RPM-users: type rpm -qd rh-isdn to see where the documentation has gone, in the tgz it is located in the docs directory.
[1] | Where you might ask in english as well. |
[2] | Which is in fact just a symlink to /etc/ppp/ip-up.local |
[3] | Then there is in most cases sth. wrong with your connection |
[4] | Only if DYNAMIC-IP is set to yes in Section 4.2. |
1999/12/29, http://www.webideal.de/rh-isdn/