Re: slattach and /etc/network/interfaces
On Fri, Aug 30, 2002 at 09:50:00PM +0200, Pieter-Tjerk de Boer wrote:
> Hello,
>
> I'm moving my network initialization scripts from /etc/init.d/networking
> to the "new" "standard" place for such things on Debian, namely
> /etc/network/interfaces .
> However, I run into problems with the extra programs that need to be
> started for some interfaces, like 'slattach' for slip interfaces.
>
> The obvious way to deal with them, would be to use 'pre-up' and 'up' lines
> in /etc/network/interfaces ; e.g.:
> pre-up /sbin/slattach -p slip /dev/ptyr0 &
> This works fine if I start the interfaces by typing the appropriate ifup
> command by hand.
>
> However, it does not work properly for starting them during system boot.
> Analysis with strace shows that about 7 seconds after being started, the
> program is sent a SIGHUP, and it subsequently exits. I think these 7
> seconds are the time that passes until the boot process completes and
> the login prompt appears.
>
> Does anyone know how to properly start slattach and similar programs
> from /etc/network/interfaces?
>
> Best regards,
> Pieter-Tjerk
> --
> [ e-mail: pa3fwm@amsat.org / ptdeboer@cs.utwente.nl ]
> [ packet-radio: pa3fwm@pi8daz.#twe.nld.eu ]
>
>
> --
I would try to run it from within a shell:
pre-up /bin/sh -c /sbin/slattach -p slip /dev/ptyr0 &
Another test is to try it with bash -x option in order to examine
what it really wants to do. However I am just guessing. I hope this
is not complete nonsense.
--
Shaul Karl, shaulka@bezeqint.n e t
Reply to: