Hello Al.
Thanks for the tip. I wonder though about my situation. I am trying to get
/sbin/slattach to run along with its related routes.. That is not a Daemon
but rather it is an interface like eth0, or lo etc..
So - with that in mind, maybe I am on the wrong track. Maybe I shouldn't be
making up a script like I list below. Maybe this should be something like a
ifcfg-sl0 ??
On Thursday 19 April 2001 17:04, you wrote:
> You at least need a stop and start function for it to work. You should
> also try using the daemon function as well. To troubleshoot your
> script interactively, what I do, as root, is,
>
> $ cd /etc/rc.d/init.d
> $ . ./functions
> $ daemon whatever
>
> If that doesn’t work because it can’t find the program, check your
> $PATH. Adjust.
>
> If everything is working right, then that will start the daemon. Use
> killall to kill it. If that works, then try placing those commands in
> the script and test that. You should make any adjustments to your $PATH
> definition there if necessary.
> === Al
>
> --- Ted Gervais <[EMAIL PROTECTED]> wrote:
> > I am wondering if someone would be so kind to look at what I have for an
> > interface script and tell me how far off base I am. What I am trying to
> > do is to install an sl0 interface to tie the linux kernel to an
> > application . Slattach is the daemon that is used..
> >
> > I used chkconfig --add rc.slip to tell my system that this script
> > exists. That works fine, and it gets installed when I reboot . I know
> > however that it is not sophisticated and is missing various things such
> > as a 'start' and 'stop' function. I have no idea how to install that
> > part, even though I am still looking over other scripts found in
> > /etc/rc.d/init.d...
> >
> > Here is what I have so far:
> >
> > ----------------------
> > #!/bin/bash
> > #
> > # chkconfig: 2345 85 15
> > # description: rc.slip adds a link between jnos and the kernel
> > # interface: slattach
> >
> > # Source function library.
> > . /etc/rc.d/init.d/functions
> >
> > # Source networking configuration and check that networking is up.
> > if [ -f /etc/sysconfig/network ] ; then
> > . /etc/sysconfig/network
> > [ ${NETWORKING} = "no" ] && exit 0
> > fi
> >
> > #[ -x /sbin/slattach ] || exit 0
> >
> > #prog=slattach
> >
> > #RETVAL=0
> >
> > #start () {
> > # echo -n $"Starting $prog: "
> >
> > /sbin/slattach -s 38400 -p slip /dev/ptypf &
> > sleep 2
> > /sbin/ifconfig sl0 44.135.34.209 netmask 255.255.255.255 broadcast
> > 44.135.34.255
> > sleep 1
> > /sbin/route add -net 44.135.34.210 netmask 255.255.255.255 sl0
> > sleep 1
> > ----------------------------------
> >
> >
> > --
> > Ted Gervais
> > Coldbrook, Nova Scotia Canada
> >
> >
> >
> > _______________________________________________
> > Redhat-list mailing list
> > [EMAIL PROTECTED]
> > https://listman.redhat.com/mailman/listinfo/redhat-list
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Auctions - buy the things you want at great prices
> http://auctions.yahoo.com/
>
>
>
> _______________________________________________
> Redhat-list mailing list
> [EMAIL PROTECTED]
> https://listman.redhat.com/mailman/listinfo/redhat-list
--
Ted Gervais
Coldbrook, Nova Scotia Canada
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list