Re: start up script

Leonid Mamtchenkov (f.l.linux-admin@news.francoudi.com)
Wed, 12 Feb 2003 06:35:19 +0000 (UTC)


- Luis - <unix@amigo.net.gt> wrote:
L> Hi all, i want to add a script to the start up in my Red Hat box, but i
L> already put the file in /etc/rc.d/init.d and make the symbolic link in
L> /etc/rc3.d/S55routetable.
L>
L> But still doesn't work, if i run the script manually, it runs just fine,
L> but when i restart the server i doesn't run.

You might want to try using chkconfig(8) instead of manually creating
symlinks.

L> Basically the script is for adding some routes to my server.

You can add static routes by editing /etc/sysconfig/static-routes. The
format of the file is 1 route definition per line. Route definition
looks like:

eth0 net 10.5.10.0 netmask 255.255.255.0 gw 10.5.17.1

HTH.

-- 
Best regards,
  Leonid Mamtchenkov, RHCE
  System Administrator
  Francoudi & Stephanou Ltd.

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/