All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Andrew B. Cramer" <andrew.cramer@cramer-ts.com>
To: - Luis - <unix@amigo.net.gt>, linux-admin <linux-admin@vger.kernel.org>
Subject: Re: start up script
Date: Wed, 12 Feb 2003 16:21:24 -0600	[thread overview]
Message-ID: <3E4A7484.18954.456DBBA@localhost> (raw)
In-Reply-To: <200302120838.59057.unix@amigo.net.gt>


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
> 




  parent reply	other threads:[~2003-02-12 22:21 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-11 23:05 start up script - Luis -
2003-02-12  6:35 ` Leonid Mamtchenkov
2003-02-12  7:23 ` Glynn Clements
2003-02-12  8:35 ` freddie
2003-02-12 11:24 ` terry white
2003-02-12 14:38   ` - Luis -
2003-02-12 15:33     ` Scott Taylor
2003-02-12 17:45       ` - Luis -
2003-02-12 18:09         ` Jeff Largent
2003-02-12 18:29           ` - Luis -
2003-02-12 16:07     ` terry white
2003-02-12 22:14     ` Glynn Clements
2003-02-12 22:21     ` Andrew B. Cramer [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-03-02 18:43 Start Up Script Brian Bunnell
2003-03-06 15:55 ` James A. Pattie
2003-03-06 17:36   ` Arnt Karlsen
2003-03-06 15:28 Carol Anne Ogdin
2004-03-06 10:43 start up script Ravi Kumar Munnangi
2004-03-06 12:00 ` John Kelly
2004-03-06 17:12 ` Ray Olszewski
2004-03-09 14:09 ` Stephen Samuel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3E4A7484.18954.456DBBA@localhost \
    --to=andrew.cramer@cramer-ts.com \
    --cc=linux-admin@vger.kernel.org \
    --cc=unix@amigo.net.gt \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.