From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Andrew B. Cramer" Subject: Re: start up script Date: Wed, 12 Feb 2003 16:21:24 -0600 Sender: linux-admin-owner@vger.kernel.org Message-ID: <3E4A7484.18954.456DBBA@localhost> References: Reply-To: andrew.cramer@cramer-ts.com Mime-Version: 1.0 Content-Transfer-Encoding: 7BIT Return-path: In-reply-to: <200302120838.59057.unix@amigo.net.gt> Content-description: Mail message body List-Id: Content-Type: text/plain; charset="us-ascii" To: - Luis - , linux-admin Hi, I use this, and call it rc.myroutes. It's for 2 network cards. Running Slackware. #! /bin/sh /sbin/route add -net 192.168.0.128 gw 192.168.0.130 netmask 255.255.255.128 /sbin/route add -net 192.168.0.0 gw 192.168.0.1 netmask 255.255.255.128 # Best - Andrew On 12 Feb 2003 at 8:38, - Luis - wrote: > This is my script: > > #!/bin/bash > /sbin/route add -net 10.3.1.0 netmask 255.255.255.0 gw 10.1.1.250 > /sbin/route add -net 10.4.1.0 netmask 255.255.255.0 gw 10.1.1.250 > /sbin/route add -net 10.8.1.0 netmask 255.255.255.0 gw 10.1.1.250 > > and its place in /etc/rc.d/init.d/routetable and the link its in > /etc/rc.d/rc3.d/S55routetable > > but i run it only executing /etc/rc.d/init.d/routetable as root > > how does it work chkconfig? or do i have to place this script in somewhere > else? > > Thanks > > On Wednesday 12 February 2003 05:24, terry white wrote: > > on "2-11-2003" "- Luis -" writ: > > : Hi all, i want to add a script to the start up in my Red Hat box, but i > > : already put the file in /etc/rc.d/init.d and make the symbolic link in > > : /etc/rc3.d/S55routetable. > > : > > : But still doesn't work, if i run the script manually, it runs just fine, > > : but when i restart the server i doesn't run. > > > > ... did you use 'chkconfig' to enable it ... > > -- > Luis Valencia > ------------------------ > With a PC, I always felt limited > by the software available. > On Unix, I am limited only by my knowledge. > --Peter J. Schoenster > > > - > To unsubscribe from this list: send the line "unsubscribe linux-admin" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html >