RE: RH9 Processes Failing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> > This is a strange place to be running these sorts of applications.  You
> > should, instead, create a start/stop script for in /etc/rc.d/init.d - a
> > good approach would be to copy one of the scripts there and modify it
> > accordingly.  Then do:
> > # chckconfig --add cam          or whatever you call your script
> > # service cam start             to start it now
> >
> > I suspect the issue you're seeing with putting it in inittab is that
> > /home might not be mounted at the time your application starts.
>
> Needless to say, Im a bit new at this.  Ive been researching since your
> suggestion, and I havent found where a file in /etc/rc.d/init.d actually
> runs the application.
> For example, here is the contents of the yum file there:
>
> [startup script deleted]
>
> What about that script actually runs anything?
> Where can I learn more about doing what Im looking for?
>

Hey there.
Agreed, that startup script looks like it just causes an event to happen and
is not what you're looking for.

Anyway, two things I noticed about your original post

first:
In your original post you had this as your inittab entry:
cam:3:respawn:/home/salvatore/cam/runcam
The first thing I'd check is your runlevel on bootup to make sure it's at 3.

do
'who -r'

or check your "id" line in your /etc/inittab
e.g.
id:3:initdefault:

second:
You said when you type the contents of runcam on the console it runs.  When
you type "runcam" it doesn't run.  Right there that should be the big flag.
You may have env variables in your startup that allow you to run runcam when
typing in the commands.  Or something else flaky.  who knows . If you get
your runcam able to run (even better get it able to run out of cron) then
that will increase the likelihood of it being able to run out of
/etc/inittab.   Is runcam a home grown script?  Is it a bash script?   I
definitely would start by debugging this.


Ben





-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux