Re: start up script

From: Leonid Mamtchenkov (f.l.linux-admin@news.francoudi.com)
Date: Wed Feb 12 2003 - 01:35:19 EST


- 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/



This archive was generated by hypermail 2b29 : Sat Feb 15 2003 - 22:00:38 EST