Re: ppp and ip-up.d, ip-down.d
servis writes:
> *- Kenneth MacDonald wrote about "Re: ppp and ip-up.d, ip-down.d"
>>>>>>> "Marc" == Marc Haber <Marc.Haber-lists@gmx.de> writes:
>>
Marc> As you see, ip-up and ip-down export $PPP_OPERATION which is
Marc> either "up" or "down" and proceed to call run-parts
Marc> /etc/ppp/ip.d.
>>
>> This doesn't allow for services to be stopped in a different order
>> from which they're started, unless you have scripts which only operate
>> on an "up" or "down" PPP_OPERATION, thus giving you two scripts for
>> each service again.
>>
> How about having a ip.d directory that has the actual scripts(similiar
> to init.d) and then directories ip-up.d and ip-down.d with S and K
> symlinks to ip.d(similiar to rc?.d). That way the order could be
> changed.
Gosh, that's how I thought it worked already.
Put me down for supporting this method. IMHO it makes more sense to do
it this way than to have to learn *two* mechanisms for running parts of
something.
> This can be implimented with a minimal change to the ppp package setup.
> update-rc.d could be modified to create an update-ip.d to serve the same
> purpose for the ip.d scripts as the init.d scripts.
> --
> Brian
> ---------------------------------------------------------------------
> "Never criticize anybody until you have walked a mile in their shoes,
> because by that time you will be a mile away and have their shoes."
> - unknown
> Mechanical Engineering servis@purdue.edu
> Purdue University http://www.ecn.purdue.edu/~servis
> ---------------------------------------------------------------------
> --
> To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: