RE: RH9 Processes Failing

From: Ben Yau (byau_at_cardcommerce.com)
Date: 01/12/04

  • Next message: Blah Blah Lounge: "Can't Upgrade to RH9: Doesn't see previous installation."
    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
    

  • Next message: Blah Blah Lounge: "Can't Upgrade to RH9: Doesn't see previous installation."

    Relevant Pages

    • Re: Xcopy not working in startup script
      ... This is a basic batch file script that I am ... deploying through group policy in the startup script to copy ... it works fine on it's own, but when deployed through group policy it ... the permissions of the computer object elsewhere in the domain. ...
      (microsoft.public.windows.server.general)
    • Re: Ooooopppps. Rights not right...
      ... Use a log in script to call a compiled file stored on a share. ... > because the classid is for per machine instead of per user. ... > you have create two user classes, one is called student; ... > Put this bat file to the computer startup script in the local group policy. ...
      (microsoft.public.windows.server.general)
    • Re: Power Management GPO?
      ... I suspect that the power management subsystem might not be started when the startup scripts runs or the SYSTEM context can't modify it, but I have some ideas about this and will do some testing later on today to work it out. ... I created a GPO and put the batch file in first as a startup script and when that didn't work I tried it as a logon script. ... A normal user can't change the power settings so a logon script like this won't work either. ... I can't remember if all power setting are per machine, but if some are per machine and some are per user then you could split it up into 2 scripts, one startup script and one logon script. ...
      (microsoft.public.windows.group_policy)
    • Re: Xcopy not working in startup script
      ... This is a basic batch file script that I am ... deploying through group policy in the startup script to copy ... I'm deploying it during the ... the permissions of the computer object elsewhere in the domain. ...
      (microsoft.public.windows.server.general)
    • RE: Set default printer based on room location
      ... done with a "Startup Script" Batch file or with KIX Script. ... if JoeA logs on to a PC in suite A the network printer A is assigned ... > but then if he goes across to suite B network printer b is assigned. ...
      (microsoft.public.windows.server.active_directory)