# This runset manages a PPP link.

# At one time, I shared dialup access with my family,
# routed through my linux box.  We paid by the minute, so
# it was important not to keep the link up unneccesarily.
#
# Runset's independent per-user switching was basically invented
# for easy management of the link.  All they had to do was telnet
# into my server and type "request ppp" to start.  When they were
# finished, they could type "request -r ppp", and the link would close
# if and only if no one needed it.
#
# (Nowadays, we have ADSL).

# Allow each user to request internet access.
!user michael
!user karl
!user linda
!user ironcat

# Allow each user to give an override command if someone has
# left the internet on by accident.
!user/cancel michael
!user/cancel karl
!user/cancel linda
!user/cancel ironcat

# and the actual command to start pppd
# Using "watch" causes the runset to be automatically cancelled
# if pppd exits unexpectedly (usually because of a hangup).
watch /usr/sbin/pppd /dev/ttyS2 115200
