On Tuesday 05 October 2004 01:55, Rikard Johnels wrote:
On Tuesday 05 October 2004 00.01, Leendert Meyer wrote:
On Monday 04 October 2004 23:22, Rikard Johnels wrote:
Hi all!
I have two binaries, and one script i need to start right after network is up. (the ADSL login and no-ip client) How do i make sure those get started at boot and the right runlevels? I tried looking into the different boot.xx files but couldn't make too much out out of it...
On SuSE 9.1, this is described in:
- man init.d (same as /etc/init.d/README) - /etc/init.d/skeleton
I got so far. The S and K links is the place, but i cant understand how to change the skeleton.
Hmm, perhaps I should have pointed out that the whole idea of SuSE's boot concept is to forget the S and K links. Read /etc/init.d/skeleton. The order of the scripts is controlled in the lines between: ### BEGIN INIT INFO and ### END INIT INFO And 'man insserv' can tell you more about it.
All i need is to run "jdsl -l" to login (and "jdsl -o" to logout) from the ADSL, and make sure no-ip runs after that. The last thing is the script (which loads a few iptables rules i need.)
First of all, I am unfamiliar with ADSL. But there is a YaST DSL module, did you already check it out? And second, no-ip implies that you don't have a permanent connection, do you? So to me it seems the better place for the no-ip binary would be in /etc/sysconfig/network/if-{up,down}.d/. Search e.g. in /sbin/ifup for if-up.d, and nearby you'll find how the scripts in if-{up,down}.d/ will be called (with which arguments). I guess you only want to execute the no-ip binary if the ADSL interface has been brought up (and perhaps right before it is brought down?). The second argument has the name of the interface, so if the interface name does not match that of the ADSL interface, there is nothing to be done. Cheers, Leen