Re: inittab



Thanks Brian and Tonagon,
You have solved the problem. I copied the script into the /etc/rc2.d
directory and it worked like a charm.

Much appreciated - this will be noted down.


Have a great day!


Cheers
Pedds : )
"Brian K. White" <brian@xxxxxxxxx> wrote in message
news:026f01c6302f$1d188460$6a00000a@xxxxxxxx

----- Original Message -----
From: "connect" <pamato@xxxxxxxxxxxxxxxx>
Newsgroups: comp.unix.sco.misc
To: <distro@xxxxxxx>
Sent: Sunday, February 12, 2006 5:52 PM
Subject: inittab


Hi,
I'm trying to get a process running from boot up.
I have added an entry in the initab file, but it is not working.I can
manually start the process. Any ideas:
atmc:234:bootwait:/u/atmc/atmc.rc

Thanking you in advanced......

Pedds ; )

1) Is /u a seperate filesystem? It won't be mounted yet at that point.

2) You have to pay unusual attention to things like PATH and TERM in a
script run from other contexts besides normal fully booted up multi-user,
logged in.
Like inittab, rc scripts, cron jobs, cgi scripts...

3) inittab gets overwritten from templates by some os commands, things you
add to it will dissapear unless you add them to the source/template files
too.
From the top of inittab itself:
# /etc/inittab on 286/386 processors is built by Installable
# Drivers (ID) each time the kernel is rebuilt. /etc/inittab is replaced
# by /etc/conf/cf.d/init.base appended with the component files in the
# /etc/conf/init.d directory by the /etc/conf/bin/idmkinit command.

4) ## this is the important one ###
Do you _really_ need it to be run that early? from inittab?
Generally speaking, inittab isn't meant to run random stuff you want to
run
at boot.
Instead put a script in /etc/rc2.d and give it a name that starts with
uppercase S and a number and it will get run during bootup.
atmc.rc already sounds like it's an rc script, it's probably intended to
be
copied somewhere into /etc/rc*
so do this: cp /u/atmc/atmc.rc /etc/rc2.d/S99atmc
Why copy and not symlink? because the /u drive might still not be mounted
yet at the time that tries to run.
So if you copy it, at least the script, if not the app, will exist while
booting up (instead of a broken link), and you can add stuff to the script
to make it test if /u/atmc exists, sleep 1, in a loop until /u/atmc
exists,
then runs the app.

Brian K. White -- brian@xxxxxxxxx -- http://www.aljex.com/bkw/
+++++[>+++[>+++++>+++++++<<-]<-]>>+.>.+++++.+++++++.-.[>+<---]>++.
filePro BBx Linux SCO FreeBSD #callahans Satriani Filk!



.



Relevant Pages

  • Re: inittab
    ... I'm trying to get a process running from boot up. ... I have added an entry in the initab file, but it is not working.I can ... script run from other contexts besides normal fully booted up multi-user, ... Like inittab, rc scripts, cron jobs, cgi scripts... ...
    (comp.unix.sco.misc)
  • Re: DVD burner mounting problems: not a block device
    ... Slackware uses a BSD-style init. ... out which script that is and modify that one. ... inittab is the configuration file for /sbin/init, ... right place--varies with distro, and I've never used Slack, so I don't ...
    (comp.os.linux.hardware)
  • Re: Slack building from source CD
    ... it still put me on login prompt. ... I'm checking inittab ... I don't know dude, it just keeps kicking me back out automatically(loggin ... > what the script did to the system ...
    (comp.os.linux.setup)
  • Vfb startup
    ... We are trying to start vfb at boot up (using inittab) which is not working, ... but when same script is executed from prompt, ... When this process is killed and 'startvfb' script is executed from prompt, ...
    (AIX-L)
  • Re: Creating Secure Standalone Binaries for 9/X
    ... I can't figure out how to lock down the app ... so the IP of the script is unprotected. ... does is copy the text of your script into the resource: ... Of course, as Andreas said, it's probably just a matter that the file type ...
    (comp.lang.tcl)