RE: RH9 Processes Failing
From: Ben Yau (byau_at_cardcommerce.com)
Date: 01/12/04
- Previous message: Ben Yau: "DHCP Followup RE: Requesting new IP address RH 9"
- In reply to: salvatore: "RE: RH9 Processes Failing"
- Next in thread: Steve: "RE: RH9 Processes Failing"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: <redhat-list@redhat.com> Date: Mon, 12 Jan 2004 14:41:27 -0800
> > 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@redhat.com?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list
- Previous message: Ben Yau: "DHCP Followup RE: Requesting new IP address RH 9"
- In reply to: salvatore: "RE: RH9 Processes Failing"
- Next in thread: Steve: "RE: RH9 Processes Failing"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|